Fix disabled Synology DSM camera#41686
Conversation
|
Does not fixes #41691, the error is slightly different. |
| if not self.available: | ||
| return None | ||
| return self._api.surveillance_station.get_camera_image(self._camera.id) | ||
|
|
||
| async def stream_source(self) -> str: | ||
| """Return the source of the stream.""" | ||
| if not self.available: | ||
| return None | ||
| return self._camera.live_view.rtsp |
There was a problem hiding this comment.
Checks can be added in homeassistant.components.camera.Camera, right ?
There was a problem hiding this comment.
Sure thing. Found an example in esphome:
core/homeassistant/components/esphome/camera.py
Lines 56 to 59 in c8ac787
There was a problem hiding this comment.
Yeah, that would be nice.
As this PR is for 0.116.x, I think I should do this in a new PR, for next release.
Oh sorry my bad 😅 it looked so similar on first glance. |
|
Just wanted to comment on this to say that while cameras are disabled, CPU usage on the HA VM goes to 100%, presumably due to this integration continuously trying to access disabled cameras. Will turn off the disabling of cameras until this has been rectified. Hope to see the fix soon! |
|
After the update to 0.116.4 it's kinda worst.... before when the camera was disabled it said "idle" and when it was enabled said "streaming". Now when it's disable > Unavailable, and when I enable it... never refresh, it stays in Unavailable (I've waited more than 5 min) Edit: After 5 min it shows OK, but Idle... can it be change to Streaming? |
|
@elpablillo : just re tested, here is what happened -->
As I know, there is no streaming state. If there is an other problem, feel free to create an issue. |


Proposed change
Fix errors when a camera is disabled:
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: