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

Service call fails #179

Closed
stigvi opened this issue Mar 3, 2021 · 3 comments
Closed

Service call fails #179

stigvi opened this issue Mar 3, 2021 · 3 comments

Comments

@stigvi
Copy link

stigvi commented Mar 3, 2021

I upgraded to core version 2021.3.0 this evening and are getting errors shown below. It was working in 2021.2.3

2021-03-03 22:15:48 ERROR (MainThread) [custom_components.pyscript.scripts.diverse.presence.activity] Exception in <scripts.diverse.presence.activity> line 45: timer.activity.start(duration = "02:00:00") ^ AttributeError: 'StateVal' object has no attribute 'start'

2021-03-03 22:22:19 ERROR (MainThread) [custom_components.pyscript.scripts.alarm.arm.armhome] Exception in <scripts.alarm.arm.armhome> line 6: alarm_control_panel.hjemmealarm.alarm_arm_home(code = "1234") ^ AttributeError: 'StateVal' object has no attribute 'alarm_arm_home'

@craigbarratt
Copy link
Member

craigbarratt commented Mar 3, 2021

2021.3.0 changes the way services with entities works. This should be fixed in master. Please run master to confirm.

@stigvi
Copy link
Author

stigvi commented Mar 3, 2021

Yes, I saw that in #173 (comment) after I have posted. I have changed to master and can confirm that timer.start works now.

Edit: no errors tonight, so it looks good :-)

@craigbarratt
Copy link
Member

Thanks for confirming. Released 1.3.1 with this fix (and a couple of others).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants