-
Notifications
You must be signed in to change notification settings - Fork 87
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
Error on homeassistant/home-assistant:2023.6.0.dev20230430 #227
Comments
Changing 371 to the following seems to do it for me.
|
The same issue is in official 2023.6 release. |
Can confirm this fixes it. Thanks @Wibias |
Maybe @Wibias could make a PR with this change to save Clayton some time and we can all benefit from his fix? :D |
That would be fantastic @Wibias as I also have this issue and don’t necessarily understand what I need to change. |
fixes issue claytonjn#227 from the main claytonjn fork
Changes as identified in issue claytonjn#227
Well I gave it a go, first PR so go easy on me. |
Hi! I left a comment on your PR |
Yup also left a comment. I would have already made a PR but I dont really see that this custom component is really maintained by the amount of open PR`s so i rather wrote it down in here. Also like I wrote in the PR please keep "if tasks" in and dont remove it like I have done so we do not have any ValueErrors if we have an empty list. So like this:
Maybe my thought process is wrong so feel free to give any comments. I am more of an user than a developer. |
I thought about forking this awesome custom component just to maintain it if there is no intention or no time to maintain it anymore. Or maybe just add some maintainers who can merge PR´s and change the code and stuff. But maybe @claytonjn can say something about this. |
For anyone who is not familiar with how to change the code to fix this issue, you use visual studio code server, under the folder custom components, you will find the folder circadian lighting, and in there you open switch.py, in there you replace the code from line 371 untill 377 with:
if tasks: Good luck! And hope this gets fixed soon! |
Hey all, sorry for missing the issue originally! I was sick, then traveling for work, then my home server running Home Assistant (amongst other things) started having hardware issues so I've been trying to figure out an affordable way to make it highly available and more power friendly. I'm not as active with this project as I'd like to be able to but it's definitely still being maintained! Thanks to everyone for the contributions - I'll try to get the fix released today or tomorrow and I'll skip the normal beta release cycle. |
Would you be interested in having the work upstreamed into HA core? I maintain a few integrations, both custom and upstreamed, and I'd be happy to take on the work to migrate it to core along with a config flow, etc. |
To be honest, I don't know. I pursued adding it as a core integration about 5 years ago and there wasn't any interest from Paulus; I believe the feedback was that it was not differentiated enough from the Flux integration which would cause confusion to users about various use-cases and also at the time he did not like that Circadian Lighting (and Flux) were switch entities, because they really enable/disable automation-type behavior and not something external to Home Assistant. Then about three years ago, before creating Adaptive Lighting, basnijholt made a bunch of contributions to prepare the integration for addition to core, and again that didn't go anywhere I believe based on pushback from the core team - I'm not sure what the reasoning was at that time. While frustrating, I do agree with a lot of the points Paulus and others have made - the integration can be daunting to set up, and it isn't immediately clear to the user how it behaves (for example, many users don't even realize that switch entities are generated to control the behavior, or that multiple configurations can be added). Also, being switch entities does complicate auto-generated dashboards (for example, where a user wants a dashboard of all light switches). Some of this would be mitigated by finally migrating to config flow rather than yaml, but part of the reason I haven't done so is because there are still the fundamental design issue of relying on switch entity types, so I've been considering better alternatives. At one point I was even working towards creating a new As of now, I actually think that the best option wrt including this functionality in HA core would be twofold:
Any thoughts on the above? As someone who already maintains some core integrations, do you have any idea what would be involved in me submitting and maintaining a core blueprint? |
Signed-off-by: Bruno Abrantes <[email protected]>
Hey.
I have my Home-Assistant Instance updated to 2023.6.0.dev20230430 and I am suddenly getting this error in the logs.
The text was updated successfully, but these errors were encountered: