8000 Make default duration 1/10th of a second for ZHA light calls by dmulcahey · Pull Request #38739 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make default duration 1/10th of a second for ZHA light calls #38739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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/zha/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def supported_features(self):
async def async_turn_on(self, **kwargs):
"""Turn the entity on."""
transition = kwargs.get(light.ATTR_TRANSITION)
duration = transition * 10 if transition else 0
duration = transition * 10 if transition else 1
brightness = kwargs.get(light.ATTR_BRIGHTNESS)
effect = kwargs.get(light.ATTR_EFFECT)
flash = kwargs.get(light.ATTR_FLASH)
Expand Down
2 changes: 1 addition & 1 deletion tests/components/zha/test_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ async def async_test_level_on_off_from_hass(
4,
(zigpy.types.uint8_t, zigpy.types.uint16_t),
10,
0,
1,
expect_reply=True,
manufacturer=None,
tsn=None,
Expand Down
0