-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Add device to mqtt camera #26238
8000New 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
Add device to mqtt camera #26238
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@emontnemery can you confirm?
Yes, this looks good, but a couple of things should be improved: We need to handle the case when updated device information is received, see #20442. Tests are also needed, with
|
@emontnemery Updated code and added tests, as you wrote. |
* dev: (87 commits) Add atome sensor platform (home-assistant#26197) Replaces IOError by OSError (home-assistant#26428) Entity registry doesn't overwrite with None (home-assistant#24275) Add device to mqtt camera (home-assistant#26238) Updated frontend to 20190904.0 (home-assistant#26421) Add prettier to vscode (home-assistant#26417) NSW Rural Fire Service icon for geolocation entities (home-assistant#26416) Update azure-pipelines-translation.yml for Azure Pipelines [ci skip] Translation update Update azure-pipelines-translation.yml for Azure Pipelines Update azure-pipelines-translation.yml for Azure Pipelines Update azure-pipelines-translation.yml for Azure Pipelines Update azure-pipelines-translation.yml for Azure Pipelines Bumped version to 0.98.3 Bump ISY994's PyISY dependency to 1.1.2 (home-assistant#26413) Fix state report (home-assistant#26406) Update to 0.1.13 (home-assistant#26402) Met, check for existing location (home-assistant#26400) Allow core config updated (home-assistant#26398) Fix race during initial Sonos group construction (home-assistant#26371) ...
Description:
Mqtt camera docs states there is device possible ( https://www.home-assistant.io/components/camera.mqtt/#device ) but from the code it doesn't seem to be supported. Added device support, copying solution from mqtt sensor.
Related issue (if applicable): fixes EliasKotlyar/Xiaomi-Dafang-Hacks#952
Example entry for
configuration.yaml
(if applicable):Checklist:
tox
. Your PR cannot be merged unless tests pass