home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.63k stars 30.78k forks source link

Synology / Surveillance Station 'NoneType' object has no attribute 'get_home_mode_status' #99847

Closed Pendragon closed 1 year ago

Pendragon commented 1 year ago

The problem

After upgrade of HomeAssistant to 2023.9 Synology Intgration is not working anymore

What version of Home Assistant Core has the issue?

core-2023.9.0

What was the last working version of Home Assistant Core?

core-2023.8.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

synology

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-09-07 12:46:38.772 ERROR (MainThread) [homeassistant.components.synology_dsm.coordinator] Unexpected error fetching quadra SynologyDSMSwitchUpdateCoordinator data: 'NoneType' object has no attribute 'get_home_mode_status'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 293, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/synology_dsm/coordinator.py", line 73, in _async_update_data
    "switches": {"home_mode": await surveillance_station.get_home_mode_status()}
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_home_mode_status'
2023-09-07 12:46:38.782 WARNING (MainThread) [homeassistant.config_entries] Config entry 'quadra' for synology_dsm integration not ready yet: 'NoneType' object has no attribute 'get_home_mode_status'; Retrying in background

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @hacf-fr, @quentame, @mib1185, mind taking a look at this issue as it has been labeled with an integration (synology_dsm) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `synology_dsm` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign synology_dsm` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


synology_dsm documentation synology_dsm source (message by IssueLinks)

Quentame commented 1 year ago

Hi !

Do you use SurveillanceStation ? If yes, what version ? Or, have you uninstalled it recently ?

Thanks

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.