gateway: use main device model for subdevices#1233
Conversation
This fixes the issue where invoking a method on gateway subdevice causes model discovery, which fails as the subdevices do not have a host by themselves.
|
@starkillerOG mind testing if this fix works for you? |
|
@rytilahti I tested it, but it does not work, still getting: |
|
#1229 did work, but I agree that it is quick and dirty. |
|
However due to these lines: python-miio/miio/gateway/gatewaydevice.py Lines 31 to 34 in 4342e3d Click will not work anyway I think. However note that I don't understand click very well and do not use it myself, so take my comments with a grain of salt regarding click. |
|
Okay, you are right, the click integration won't work so there's not much reason to hold those in the code base.. So let's go with your solution for the time being! It will still cause the same issue if someone for some reason tries to access the |
This fixes the issue where invoking a method on gateway subdevice causes model discovery,
which fails as the subdevices do not have a host by themselves.
Related to downstream report home-assistant/core#61234 . Replaces #1229