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

Throwing GatewayException in get_illumination #831

Merged
merged 2 commits into from
Oct 11, 2020

Conversation

javicalle
Copy link
Contributor

I'm not sure if the GatewayException type is only suitable for SubDevice or is also allowed here, but it is the exception HA expects in this case:
https://github.com/home-assistant/core/blob/985e4e1bd942ef4ab56617a77f59baeec10649c5/homeassistant/components/xiaomi_miio/sensor.py#L320:L325

I'm not sure if the GatewayException type is only suitable for SubDevice or is also allowed here, but it is the exception HA expects in this case:
https://github.com/home-assistant/core/blob/985e4e1bd942ef4ab56617a77f59baeec10649c5/homeassistant/components/xiaomi_miio/sensor.py#L320:L325
@rytilahti
Copy link
Owner

LGTM 👍 @starkillerOG do you have an opinion on this?

@starkillerOG
Copy link
Contributor

LGTM, thanks @javicalle.
Can be merged.

@rytilahti rytilahti merged commit c4ab5e6 into rytilahti:master Oct 11, 2020
@javicalle javicalle deleted the patch-1 branch October 11, 2020 11:30
swim2sun pushed a commit to swim2sun/python-miio that referenced this pull request Oct 13, 2020
* Throwing GatewayException in get_illumination

I'm not sure if the GatewayException type is only suitable for SubDevice or is also allowed here, but it is the exception HA expects in this case:
https://github.com/home-assistant/core/blob/985e4e1bd942ef4ab56617a77f59baeec10649c5/homeassistant/components/xiaomi_miio/sensor.py#L320:L325

* Fix black validation
swim2sun added a commit to swim2sun/python-miio that referenced this pull request Oct 13, 2020
xvlady pushed a commit to xvlady/python-miio that referenced this pull request May 9, 2021
* Throwing GatewayException in get_illumination

I'm not sure if the GatewayException type is only suitable for SubDevice or is also allowed here, but it is the exception HA expects in this case:
https://github.com/home-assistant/core/blob/985e4e1bd942ef4ab56617a77f59baeec10649c5/homeassistant/components/xiaomi_miio/sensor.py#L320:L325

* Fix black validation
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