-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
Move imports in hue component #27357
Conversation
If tests are needed, I don't have Hue sensors. Also, should this line https://github.com/home-assistant/home-assistant/pull/27357/files#diff-2ff6bc353f63f5a68d63f85fd46d6c08R125 (hue/sensor_base.py:125) stay line this ? |
ec9b7c2
to
82140dc
Compare
Hue needs refactoring to avoid the circular dependencies. The sensor manager class should be moved to it's own file |
82140dc
to
9f8f846
Compare
I don't get the error @balloob , am I doing right ? |
You're still having a circular dependency now. binary_sensor imports SensorManager, sensor manager imports binary sensor… |
9f8f846
to
016e0bc
Compare
Try multiple things tonight, but don't know how to fix for now. |
Then I suggest we close it for now. Leave it to someone else. |
Breaking Change:
None
Description:
Moved import from function to top-level as requested in #27284
Related issue (if applicable): #27284
Checklist:
tox
. Your PR cannot be merged unless tests pass