Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/zwave/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __init__(self, values, refresh, delay):
self._state = None
self._color_mode = None
self._supported_color_modes = set()
self._supported_features = None
self._supported_features = 0
self._delay = delay
self._refresh_value = refresh
self._zw098 = None
Expand Down
8 changes: 4 additions & 4 deletions tests/components/zwave/test_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_get_device_detects_dimmer(mock_openzwave):
device = light.get_device(node=node, values=values, node_config={})
assert isinstance(device, light.ZwaveDimmer)
assert device.color_mode == COLOR_MODE_BRIGHTNESS
assert device.supported_features is None
assert device.supported_features == 0
assert device.supported_color_modes == {COLOR_MODE_BRIGHTNESS}


Expand All @@ -52,7 +52,7 @@ def test_get_device_detects_colorlight(mock_openzwave):
device = light.get_device(node=node, values=values, node_config={})
assert isinstance(device, light.ZwaveColorLight)
assert device.color_mode == COLOR_MODE_RGB
assert device.supported_features is None
assert device.supported_features == 0
assert device.supported_color_modes == {COLOR_MODE_RGB}


Expand All @@ -68,7 +68,7 @@ def test_get_device_detects_zw098(mock_openzwave):
device = light.get_device(node=node, values=values, node_config={})
assert isinstance(device, light.ZwaveColorLight)
assert device.color_mode == COLOR_MODE_RGB
assert device.supported_features is None
assert device.supported_features == 0
assert device.supported_color_modes == {COLOR_MODE_COLOR_TEMP, COLOR_MODE_RGB}


Expand All @@ -84,7 +84,7 @@ def test_get_device_detects_rgbw_light(mock_openzwave):
device.value_added()
assert isinstance(device, light.ZwaveColorLight)
assert device.color_mode == COLOR_MODE_RGBW
assert device.supported_features is None
assert device.supported_features == 0
assert device.supported_color_modes == {COLOR_MODE_RGBW}


Expand Down