Remove unneeded guards from (async_)add_entities call (#80471)
This commit is contained in:
parent
ebf73f41ba
commit
a8f1cc0d33
66 changed files with 74 additions and 148 deletions
|
@ -28,8 +28,7 @@ def setup_platform(
|
|||
if device.is_windowshutter():
|
||||
devices.append(MaxCubeShutter(handler, device))
|
||||
|
||||
if devices:
|
||||
add_entities(devices)
|
||||
add_entities(devices)
|
||||
|
||||
|
||||
class MaxCubeBinarySensorBase(BinarySensorEntity):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue