mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-04-26 16:46:23 +00:00
Improve autooff name and unit (#997)
This commit is contained in:
parent
e083449049
commit
cee8b0fadc
@ -40,11 +40,12 @@ class AutoOff(SmartModule):
|
|||||||
Feature(
|
Feature(
|
||||||
self._device,
|
self._device,
|
||||||
id="auto_off_minutes",
|
id="auto_off_minutes",
|
||||||
name="Auto off minutes",
|
name="Auto off in",
|
||||||
container=self,
|
container=self,
|
||||||
attribute_getter="delay",
|
attribute_getter="delay",
|
||||||
attribute_setter="set_delay",
|
attribute_setter="set_delay",
|
||||||
type=Feature.Type.Number,
|
type=Feature.Type.Number,
|
||||||
|
unit="min", # ha-friendly unit, see UnitOfTime.MINUTES
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
self._add_feature(
|
self._add_feature(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user