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

2024.10.2 break SS integration stops working #101

Open
farberm opened this issue Oct 13, 2024 · 9 comments
Open

2024.10.2 break SS integration stops working #101

farberm opened this issue Oct 13, 2024 · 9 comments

Comments

@farberm
Copy link

farberm commented Oct 13, 2024

Error settup up SecuritySpy

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/securityspy/init.py", line 72, in async_setup_entry
server_info = await securityspyserver.get_server_information()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pysecspy/secspy_server.py", line 212, in get_server_information
return await self._get_server_information()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pysecspy/secspy_server.py", line 193, in _get_server_information
for preset in sched_preset["schedulepreset"]:
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'

@cbamesberger
Copy link

I got the same issue

Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 11:06:32 AM (1 occurrences)
Last logged: 11:06:32 AM

Error setting up entry SecuritySpy for securityspy
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/securityspy/init.py", line 72, in async_setup_entry
server_info = await securityspyserver.get_server_information()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pysecspy/secspy_server.py", line 212, in get_server_information
return await self._get_server_information()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pysecspy/secspy_server.py", line 193, in _get_server_information
for preset in sched_preset["schedulepreset"]:
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'

@nzrutman
Copy link

Same.

@ak-ha-guy
Copy link

Same

@ak-ha-guy
Copy link

I tried reconfiguring the setup. I also verified HTTP and 8000 on SS. No luck
2024-10-15 09:09:23.251 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Wxxxxx for securityspy

@nzrutman
Copy link

I rolled back core to 2024.9.2 and SSpy integration is working again.
ha core update --version 2024.9.2

@nzrutman
Copy link

Well, it doesn't seem to be directly broken by core 10.2; I managed to get a dev environment set up and SSpy integration has no problems starting there.
sched_preset = sys_info.get("schedulepresetlist") in secspy_server.py is None, which is correctly handled. Somehow this seems not to be the case on my real HA installation; now I need to figure out how to get my debug pysecspy to install there.
FYI if there are others looking for secspy_server.py, it's over at https://github.com/briis/pysecspy

@nzrutman
Copy link

Tried upgrading to 10.3 on my real system just now, and it seems to be working for the moment. If it fails, my workaround idea to try is adding a fake Schedule Preset in my Security Spy (app) settings (Settings, Scheduling, Schedule Presets).

@jarrah31
Copy link

10.3 has made the SS integration work again for me.

@ak-ha-guy
Copy link

Same. 10.3 is working.

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

5 participants