Skip to content
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

Fix reporting available scenes on RGB devices #121

Merged
merged 2 commits into from
Feb 11, 2022
Merged

Conversation

bdraco
Copy link
Contributor

@bdraco bdraco commented Feb 10, 2022

@bdraco
Copy link
Contributor Author

bdraco commented Feb 10, 2022

This should be the last PR for today.

If you have time, a release would be great as well as I might be able to get the remotes working after dinner.

@codecov-commenter
Copy link

Codecov Report

Merging #121 (7dd3128) into master (0b11c5f) will increase coverage by 0.47%.
The diff coverage is 37.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #121      +/-   ##
==========================================
+ Coverage   76.89%   77.36%   +0.47%     
==========================================
  Files          12       12              
  Lines         779      782       +3     
==========================================
+ Hits          599      605       +6     
+ Misses        180      177       -3     
Impacted Files Coverage Δ
pywizlight/scenes.py 100.00% <ø> (ø)
pywizlight/bulblibrary.py 90.00% <33.33%> (-1.67%) ⬇️
pywizlight/bulb.py 83.02% <50.00%> (+1.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b11c5f...7dd3128. Read the comment docs.

bdraco added a commit to bdraco/home-assistant that referenced this pull request Feb 11, 2022
- Setup is now retried later in case the wifi was
  unstable for a moment during setup

Requires sbidy/pywizlight#121

Changelog: sbidy/pywizlight@v0.5.5...v0.5.6

Fixes
```
2022-02-10 18:07:19 ERROR (MainThread) [homeassistant.components.light] Error while setting up wiz platform for light
Traceback (most recent call last):
  File "/Users/bdraco/home-assistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/Users/bdraco/home-assistant/homeassistant/components/wiz/light.py", line 69, in async_setup_entry
    async_add_entities([WizBulbEntity(wiz_data, entry.title)])
  File "/Users/bdraco/home-assistant/homeassistant/components/wiz/light.py", line 94, in __init__
    bulb_type.kelvin_range.max
AttributeError: NoneType object has no attribute max
```
@sbidy sbidy merged commit ee31e83 into sbidy:master Feb 11, 2022
@sbidy
Copy link
Owner

sbidy commented Feb 11, 2022

Reviewed, merged and release created. Sorry for the delay 😄 - there are some timezones between us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants