Skip to content

Commit

Permalink
Little change name slide speed effect
Browse files Browse the repository at this point in the history
Little change name slide speed effect and set 0 in init
  • Loading branch information
dave-code-ruiz authored Aug 28, 2023
1 parent 8bf0028 commit 82438de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/elkbledom/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async def async_setup_entry(
instance = hass.data[DOMAIN][config_entry.entry_id]
await instance.update()
async_add_entities(
[BLEDOMSlider(instance, "Effect Speed", config_entry.entry_id)])
[BLEDOMSlider(instance, "Effect Speed " + config_entry.data["name"], config_entry.entry_id)])

class BLEDOMSlider(NumberEntity):
"""Blauberg Fan entity"""
Expand All @@ -36,7 +36,7 @@ def __init__(self, bledomInstance: BLEDOMInstance, attr_name: str, entry_id: str
self._instance = bledomInstance
self._attr_name = attr_name
self._attr_unique_id = self._instance.address
self._effect_speed = None
self._effect_speed = 0

@property
def available(self):
Expand Down

0 comments on commit 82438de

Please sign in to comment.