Don't run unnecessary methods in executor pool (#14853)
* Don't run unnecessary methods in executor pool * Lint * Lint 2
This commit is contained in:
parent
50321a29b5
commit
90a51160c4
13 changed files with 23 additions and 32 deletions
|
@ -25,8 +25,8 @@ SCAN_INTERVAL = timedelta(seconds=5)
|
|||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Set up the Vera controller devices."""
|
||||
add_devices(
|
||||
VeraSensor(device, hass.data[VERA_CONTROLLER])
|
||||
for device in hass.data[VERA_DEVICES]['sensor'])
|
||||
[VeraSensor(device, hass.data[VERA_CONTROLLER])
|
||||
for device in hass.data[VERA_DEVICES]['sensor']], True)
|
||||
|
||||
|
||||
class VeraSensor(VeraDevice, Entity):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue