Skip to content

Commit

Permalink
Update: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajNyiri committed Nov 28, 2024
1 parent 4898853 commit 7262383
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/tapo_control/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ async def setupEntities(entry):
entry, hass, TapoAlertTypeSelect, "getAlertTypeList", config_entry
)
if tapoAlertTypeSelect:
LOGGER.warning("Adding tapoAlertTypeSelect...")
LOGGER.debug("Adding tapoAlertTypeSelect...")
selects.append(tapoAlertTypeSelect)
else:
LOGGER.warning("Adding tapoAlertTypeSelect with start ID 0...")
LOGGER.debug("Adding tapoAlertTypeSelect with start ID 0...")
selects.append(TapoAlertTypeSelect(entry, hass, config_entry, 0))

tapoMotionDetectionSelect = await check_and_create(
Expand Down Expand Up @@ -1095,7 +1095,7 @@ async def async_select_option(self, option: str) -> None:


class TapoAlertTypeSelect(TapoSelectEntity):
def __init__(self, entry: dict, hass: HomeAssistant, config_entry, startID):
def __init__(self, entry: dict, hass: HomeAssistant, config_entry, startID=10):
self.hub = entry["camData"]["alarm_is_hubSiren"]
self.startID = startID
self.alarm_siren_type_list = entry["camData"]["alarm_siren_type_list"]
Expand Down

0 comments on commit 7262383

Please sign in to comment.