Revert "Fix broken maxcube component" (#42859)
This reverts commit 898f50386f
.
This commit is contained in:
parent
b1ed5a3e79
commit
f6751de262
2 changed files with 6 additions and 6 deletions
|
@ -16,7 +16,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
name = f"{cube.room_by_id(device.room_id).name} {device.name}"
|
||||
|
||||
# Only add Window Shutters
|
||||
if device.is_windowshutter():
|
||||
if cube.is_windowshutter(device):
|
||||
devices.append(MaxCubeShutter(handler, name, device.rf_address))
|
||||
|
||||
if devices:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue