Skip to content

Sure Petcare: Integration broken due to possible API change #143149

@Housefrau90

Description

@Housefrau90

The problem

UPDATE:
I've downgraded back to OS 15.1 and the issue still exists. Maybe the API changed?

Hello,
I just noticed that the Sure Petcare integration does not work any more after updating the operating system to 15.2

Core 2025.4.2
Supervisor 2025.04.0
Operating System 15.2
Frontend 20250411.0

Everytime I want to perform an action, an error is thrown in the protocol.

I already tried to resetup the integration, but with no success.

What version of Home Assistant Core has the issue?

core-2025.4.2

What was the last working version of Home Assistant Core?

core-2025.4.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Sure Petcare

Link to integration documentation on our website

https://www.home-assistant.io/integrations/surepetcare/

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Logger: homeassistant.helpers.entity
Quelle: helpers/entity.py:960
Erstmals aufgetreten: 09:38:21 (3 Vorkommnisse)
Zuletzt protokolliert: 09:49:22

Update for binary_sensor.tacoma fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 601, in async_update
    await self.coordinator.async_request_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 275, in async_request_refresh
    await self._debounced_refresh.async_call()
  File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 114, in async_call
    await task
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 356, in async_refresh
    await self._async_refresh(log_failures=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 479, in _async_refresh
    self.async_update_listeners()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 178, in async_update_listeners
    update_callback()
    ~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/components/surepetcare/entity.py", line 55, in _handle_coordinator_update
    self._update_attr(self.coordinator.data[self._id])
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/surepetcare/binary_sensor.py", line 141, in _update_attr
    "hub_rssi": f"{state['signal']['hub_rssi']:.2f}",
                   ~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'hub_rssi'

Additional information

No response

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions