1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Add PTZ support to Foscam camera component (#27238)

* Add PTZ support to Foscam camera component

* Address review comments:

 - Move service to foscam domain
 - Use `dict[key]` for required schema keys or with defaults
 - Fix sync operations in async context
 - Remove excessive logging

* Fix import order

* Move all the initialization to setup_platform and fix motion detection status logic

* Move function dictionary out of the function.

* Change user input to lowercase snake case

* Change user input to lowercase snake case

* Fix service example value

* Omit foscam const module from code coverage tests

* Add myself to foscam codeowners
This commit is contained in:
Sergio Conde Gómez
2019-10-07 13:17:43 +02:00
committed by Franck Nijhof
parent 4124211095
commit f6b8cffeaf
6 changed files with 185 additions and 28 deletions

View File

@@ -0,0 +1,5 @@
"""Constants for Foscam component."""
DOMAIN = "foscam"
DATA = "foscam"
ENTITIES = "entities"