-
Notifications
You must be signed in to change notification settings - Fork 17
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
Not working with HomeAssistant 2021-05 #17
Comments
Bonjour |
|
@roumano did you manage to make it work? |
No, I'm pretty sure , the fix will be only in one line and i have try but
I'm not a developer :(
But the attribute next_noon look corresponding of the need but maybe need
to change the from "location" but to what?...
I hope too, have a quick fix.
Regards
Le ven. 7 mai 2021 à 18:43, foXaCe ***@***.***> a écrit :
… @roumano <https://github.com/roumano> did you manage to make it work?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQ3GTT5Y65MLMBN2YQVA7DTMQKDBANCNFSM44FWBP3A>
.
|
La cause vient de la mise à niveau de Astral vers 2.2 dans HA 2021.5. home-assistant/core#48573 |
Merci @remycrochon d'avoir trouver le souci ! Donc, si je comprend bien (trouver via https://github.com/home-assistant/core/pull/48573/files ) :
nouvelle version :
il suffit donc de remplacer la ligne 150 du fichier init.py de
par
|
Merci @roumano pour ton analyse. 2021-05-07 23:53:36 ERROR (MainThread) [homeassistant.components.automation.check_pool_pump_on_event] Piscine Check Pool Pump On event: Error executing script. Unexpected error for call_service at pos 1: 'Location' object has no attribute 'solar_noon' 2021-05-07 23:53:36 ERROR (MainThread) [homeassistant.components.automation.check_pool_pump_on_event] While executing automation automation.check_pool_pump_on_event |
Supprime le cache python qui est dans ton custom_compoment/pool_pump
Ça doit être pour ça que tu vois encore solar_noon au lieu de noon
Le sam. 8 mai 2021 à 00:05, remycrochon ***@***.***> a écrit :
… Merci @roumano <https://github.com/roumano> pour ton analyse.
J'ai fait la modification de mon coté mais j'ai toujours des erreurs!
2021-05-07 23:53:36 ERROR (MainThread)
[homeassistant.components.automation.check_pool_pump_on_event] Piscine
Check Pool Pump On event: Error executing script. Unexpected error for
call_service at pos 1: 'Location' object has no attribute 'solar_noon'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 363,
in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 563,
in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1481, in
async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1516, in
_execute_service
await handler.job.target(service_call)
File "/config/custom_components/pool_pump/*init*.py", line 99, in check
manager = PoolPumpManager(hass, now)
File "/config/custom_components/pool_pump/*init*.py", line 150, in *init*
get_astral_event_date(self._hass, "noon", self._now.date())
File "/usr/src/homeassistant/homeassistant/helpers/sun.py", line 119, in
get_astral_event_date
return getattr(location, event)(date, **kwargs) # type: ignore
AttributeError: 'Location' object has no attribute 'solar_noon'
2021-05-07 23:53:36 ERROR (MainThread)
[homeassistant.components.automation.check_pool_pump_on_event] While
executing automation automation.check_pool_pump_on_event
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/*init*.py",
line 504, in async_trigger
await self.action_script.async_run(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1209,
in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 345,
in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 363,
in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 563,
in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1481, in
async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1516, in
_execute_service
await handler.job.target(service_call)
File "/config/custom_components/pool_pump/*init*.py", line 99, in check
manager = PoolPumpManager(hass, now)
File "/config/custom_components/pool_pump/*init*.py", line 150, in *init*
get_astral_event_date(self._hass, "noon", self._now.date())
File "/usr/src/homeassistant/homeassistant/helpers/sun.py", line 119, in
get_astral_event_date
return getattr(location, event)(date, **kwargs) # type: ignore
AttributeError: 'Location' object has no attribute 'solar_noon'
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQ3GTXOIOIUHHZZNI53SEDTMRP25ANCNFSM44FWBP3A>
.
|
@roumano , Merci, après avoir supprimé le cache python et redémarré HA, cela a fonctionné, Pool_pump est de nouveau opérationnel. |
Bonjour, je débute sur HA et après avoir installé ha-pool_pump (la version corrigée) je bute sur le problème suivant: Error while executing automation automation.check_pool_pump_on_event: Unable to find service pool_pump.check Je ne vois pas pourquoi HA ne trouve pas le service pool_pump.check . Des suggestions? Merci. |
@xav-aaa , Tu peut regarder là pour t'aider : https://domo.rem81.com/home-assistant-gestion-piscine-filtration/ |
Bonjour, |
@g4seb, init.py == init.py , non ? |
Oups pardon init.py . Je me suis trompé. Avant la modification j'avais ça comme erreur : Piscine Check pool Pump: Error executing script. Unexpected error for call_service at pos 1: 'Location' object has no attribute 'solar_noon' Après la modification, plus d'erreur sur Boon, mais encore une là : Piscine Check pool Pump: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object has no attribute 'state' Je comprends pas.... |
Bonjour, Par contre re belotte, je vien s de passer en 2021.6.3 et de nouveau des erreurs. Il me trouve pas le service pool_pump.check. Avez vous aussi cette erreur ??
|
Moi non mais je sais d'où vient le souci....
Le service est désactivé car il y a pas la version dans le fichier manifest
, cf l'autre bug que j'ai ouvert et j'ai aussi proposer un correctif (sans
réponse)...
Le mar. 8 juin 2021 à 15:41, g4seb ***@***.***> a écrit :
… Bonjour,
bon j'ai réglé mes problèmes ça fonctionne !!
Par contre re belotte, je vien s de passer en 2021.6.3 et de nouveau des
erreurs. Il me trouve pas le service pool_pump.check.
Avez vous aussi cette erreur ??
Logger: homeassistant.components.automation.piscine_check_pool_pump
Source: helpers/script.py:1341
Integration: Automatisation (documentation, issues)
First occurred: 15:25:00 (1 occurrences)
Last logged: 15:25:00
Piscine Check pool Pump: Error executing script. Service not found for
call_service at pos 1: Unable to find service pool_pump.check
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQ3GTUT2QYIPBWBRZX7AVTTRYMYZANCNFSM44FWBP3A>
.
|
Je viens de répondre sur ton autre post |
please please can you write in English here in GitHub? I have the same problem but cannot read anything here :( |
Hi, Please see the related merge request for the fix ! , it's only one line fix I don't known why it's not yet merged but i'm not the owner or this repository so i can't handle this ... |
Version of the custom_component
After updating the home assistant ( to HomeAssistant 2021-05 )
the ha-pool_pump (i'm using the dev branch) is not working anymore
Configuration
Describe the bug
AttributeError: 'Location' object has no attribute 'solar_noon'
Debug log
The text was updated successfully, but these errors were encountered: