mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
deCONZ dependency exports type hints (#70449)
This commit is contained in:
@@ -163,7 +163,7 @@ ENTITY_DESCRIPTIONS = {
|
||||
BINARY_SENSOR_DESCRIPTIONS = [
|
||||
DeconzBinarySensorDescription(
|
||||
key="tampered",
|
||||
value_fn=lambda device: device.tampered, # type: ignore[no-any-return]
|
||||
value_fn=lambda device: device.tampered,
|
||||
suffix="Tampered",
|
||||
update_key="tampered",
|
||||
device_class=BinarySensorDeviceClass.TAMPER,
|
||||
@@ -171,7 +171,7 @@ BINARY_SENSOR_DESCRIPTIONS = [
|
||||
),
|
||||
DeconzBinarySensorDescription(
|
||||
key="low_battery",
|
||||
value_fn=lambda device: device.low_battery, # type: ignore[no-any-return]
|
||||
value_fn=lambda device: device.low_battery,
|
||||
suffix="Low Battery",
|
||||
update_key="lowbattery",
|
||||
device_class=BinarySensorDeviceClass.BATTERY,
|
||||
|
||||
Reference in New Issue
Block a user