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

Error while setting up securitas platform for sensor #253

Open
Tanjohnson99 opened this issue Oct 29, 2024 · 2 comments
Open

Error while setting up securitas platform for sensor #253

Tanjohnson99 opened this issue Oct 29, 2024 · 2 comments
Assignees

Comments

@Tanjohnson99
Copy link

Hello,

Every day, i have this error.

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:361
integration: Sensor (documentation, issues)
First occurred: 18:24:13 (1 occurrences)
Last logged: 18:24:13

Error while setting up securitas platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/securitas/sensor.py", line 42, in async_setup_entry
sentinel_data: Sentinel = await client.session.get_sentinel_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 505, in get_sentinel_data
response = await self._execute_request(content, "Sentinel")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 177, in _execute_request
response_dict["errors"][0]["message"], response_dict, headers, content
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'message'

@masterFONSI
Copy link

Same here, don't have readings on my sensors

@guerrerotook guerrerotook self-assigned this Dec 9, 2024
@guerrerotook
Copy link
Owner

This should be solved in the next release V2.8 where I add a missing parameter when calling the API.

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

3 participants