mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Allow erroring modules to recover (#1080)
Re-query failed modules after some delay instead of immediately disabling them. Changes to features so they can still be created when modules are erroring.
This commit is contained in:
@@ -69,7 +69,7 @@ class Alarm(SmartModule):
|
||||
attribute_setter="set_alarm_volume",
|
||||
category=Feature.Category.Config,
|
||||
type=Feature.Type.Choice,
|
||||
choices=["low", "normal", "high"],
|
||||
choices_getter=lambda: ["low", "normal", "high"],
|
||||
)
|
||||
)
|
||||
self._add_feature(
|
||||
|
Reference in New Issue
Block a user