mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Black
This commit is contained in:
@@ -6,8 +6,7 @@ import requests
|
||||
from homeassistant.const import TEMP_CELSIUS
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
from . import (
|
||||
ATTR_STATE_DEVICE_LOCKED, ATTR_STATE_LOCKED, DOMAIN as FRITZBOX_DOMAIN)
|
||||
from . import ATTR_STATE_DEVICE_LOCKED, ATTR_STATE_LOCKED, DOMAIN as FRITZBOX_DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@@ -21,9 +20,11 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
for fritz in fritz_list:
|
||||
device_list = fritz.get_devices()
|
||||
for device in device_list:
|
||||
if (device.has_temperature_sensor
|
||||
and not device.has_switch
|
||||
and not device.has_thermostat):
|
||||
if (
|
||||
device.has_temperature_sensor
|
||||
and not device.has_switch
|
||||
and not device.has_thermostat
|
||||
):
|
||||
devices.append(FritzBoxTempSensor(device, fritz))
|
||||
|
||||
add_entities(devices)
|
||||
|
||||
Reference in New Issue
Block a user