mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 10:28:01 +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:
@@ -54,7 +54,7 @@ class TemperatureSensor(SmartModule):
|
||||
attribute_getter="temperature_unit",
|
||||
attribute_setter="set_temperature_unit",
|
||||
type=Feature.Type.Choice,
|
||||
choices=["celsius", "fahrenheit"],
|
||||
choices_getter=lambda: ["celsius", "fahrenheit"],
|
||||
)
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user