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

Move imports in hue component #27357

Closed
wants to merge 4 commits into from

Conversation

Quentame
Copy link
Member

@Quentame Quentame commented Oct 9, 2019

Breaking Change:

None

Description:

Moved import from function to top-level as requested in #27284

Related issue (if applicable): #27284

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

@probot-home-assistant
Copy link

Hey there @balloob, mind taking a look at this pull request as its been labeled with a integration (hue) you are listed as a codeowner for? Thanks!

@Quentame
Copy link
Member Author

Quentame commented Oct 9, 2019

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 ?

@balloob
Copy link
Member

balloob commented Oct 10, 2019

Hue needs refactoring to avoid the circular dependencies. The sensor manager class should be moved to it's own file sensor_manager.py.

@Quentame
Copy link
Member Author

I don't get the error @balloob , am I doing right ?

@balloob
Copy link
Member

balloob commented Oct 12, 2019

You're still having a circular dependency now. binary_sensor imports SensorManager, sensor manager imports binary sensor…

@Quentame
Copy link
Member Author

Try multiple things tonight, but don't know how to fix for now.

@balloob
Copy link
Member

balloob commented Oct 18, 2019

Then I suggest we close it for now. Leave it to someone else.

@balloob balloob closed this Oct 18, 2019
@Quentame Quentame deleted the hue/move_imports branch October 18, 2019 07:12
@lock lock bot locked and limited conversation to collaborators Oct 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants