Removes unwanted tradfri battery sensor (#28181)

This commit is contained in:
Joakim Sørensen 2019-10-24 23:25:47 +02:00 committed by cgtobi
parent 63deec3275
commit 67cf7c26da

View File

@ -19,6 +19,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
if not dev.has_light_control
and not dev.has_socket_control
and not dev.has_blind_control
and not dev.has_signal_repeater_control
)
if devices:
async_add_entities(TradfriSensor(device, api, gateway_id) for device in devices)