You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
await xknx.devices["TestOutlet"].set_on()
would only work as long as devices name attributes are unique - which we don't check anywhere.
Lookup by number doesn't have any real use imho.
I think it would be ok to remove this functionality in the future as it is safer for an application using it to just keep a reference to the object.
If anyone has objections, please let us know.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please make sure to update to the latest version of xknx (or Home Assistant) and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
xknx/xknx/devices/devices.py
Line 62 in 6ae7f3d
await xknx.devices["TestOutlet"].set_on()
would only work as long as devices
name
attributes are unique - which we don't check anywhere.Lookup by number doesn't have any real use imho.
I think it would be ok to remove this functionality in the future as it is safer for an application using it to just keep a reference to the object.
If anyone has objections, please let us know.
The text was updated successfully, but these errors were encountered: