diff --git a/homeassistant/components/ozw/light.py b/homeassistant/components/ozw/light.py index 2c7461976c4..7464023868d 100644 --- a/homeassistant/components/ozw/light.py +++ b/homeassistant/components/ozw/light.py @@ -172,7 +172,7 @@ class ZwaveLight(ZWaveDeviceEntity, LightEntity): else: # transition specified by user - new_value = max(0, min(7620, kwargs[ATTR_TRANSITION])) + new_value = int(max(0, min(7620, kwargs[ATTR_TRANSITION]))) if ozw_version < (1, 6, 1205): transition = kwargs[ATTR_TRANSITION] if transition <= 127: diff --git a/tests/components/ozw/test_light.py b/tests/components/ozw/test_light.py index 8f9892e37cd..e35a7214858 100644 --- a/tests/components/ozw/test_light.py +++ b/tests/components/ozw/test_light.py @@ -85,7 +85,7 @@ async def test_light(hass, light_data, light_msg, light_rgb_msg, sent_messages): assert state.state == "off" # Test turn on without brightness - new_transition = 127 + new_transition = 127.0 await hass.services.async_call( "light", "turn_on",