core/homeassistant
olijouve 0d667c1bd9
Add more onvif PTZ move modes (#30152)
* Adding support for PTZ move modes

Adding support for other PTZ move modes.
Onvif intergration used to only support RelativeMove where it should also supports AbsoluteMove, ContinuousMove and Stop.
For exemple Goke GK7102 based IP camera only support ContinuousMove mode.

This commit add those new modes with avaibility to select mode and params in service call.

* Adding support for PTZ move modes

Adding support for other PTZ move modes.
Onvif intergration used to only support RelativeMove where it should also supports AbsoluteMove, ContinuousMove and Stop.
For exemple Goke GK7102 based IP camera only support ContinuousMove mode.

Update service helper for new avaibility to select mode and params in service call.

* RelativeMode as default move_mode to avoid breakchange

RelativeMode as default move_mode to avoid breakchange

* add missing attribute

add missing continuous_duration attribute

* change service attribute label for continuous_duration

* update description

fix wrong assertion for move_mode attr description

* Update services.yaml

* Update services.yaml

fix wrong wording for move_mode

* Update camera.py

Using defined constants instead of  raw strings in conditions

* Update camera.py

Replace integer to floating point in logger debug PTZ values

* Update services.yaml

* Update services.yaml

* Update camera.py

* Update camera.py

* use dict[key] for required schema keys and keys with default schema values

* remove async for setup_ptz method

* lint error

* remove unecessary PTZ_NONE = "NONE"

changed request by @MartinHjelmare

* addressing @ MartinHjelmare comments

- Remove None in defaluts and dicts
- Replace long if blocks

* remove NONE

* lint issue

* Update camera.py

* Fix lint error - typo

* rename onvif_ptz service to just ptz

* rename onvif_ptz service to just ptz

* use dict[key] when default values are set

use service.data[key] instead of service.data.get[key] when default value is set in service schema

* adresse comment: use dict[key] for pan tilt zoom

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-03-06 15:14:01 +01:00
..
auth Replace cmp option with eq and order (#31423) 2020-02-02 20:28:52 -08:00
components Add more onvif PTZ move modes (#30152) 2020-03-06 15:14:01 +01:00
generated Add coronavirus integration (#32413) 2020-03-02 13:40:11 -08:00
helpers Improve script validation (#32461) 2020-03-05 11:44:42 -08:00
scripts Allow teaching logbook about events (#32444) 2020-03-05 11:55:50 -08:00
util Revert "Use orjson to parse json faster (#32153)" (#32185) 2020-02-25 21:07:16 +01:00
__init__.py
__main__.py
bootstrap.py Only check frontend for safe mode if frontend wanted to be loa… (#31969) 2020-02-19 15:56:46 +01:00
config.py Add www. to all documentation links (#32063) 2020-02-21 16:10:02 -08:00
config_entries.py Annotate more async functions correctly (#31802) 2020-02-14 10:00:22 -08:00
const.py Improve script validation (#32461) 2020-03-05 11:44:42 -08:00
core.py Speed up validate_entity_id (#32137) 2020-02-24 08:35:02 -08:00
data_entry_flow.py Fix typos found by codespell (#31243) 2020-01-31 08:33:00 -08:00
exceptions.py
loader.py Extend safe mode (#31927) 2020-02-18 11:52:38 -08:00
package_constraints.txt Upgrade hass-nabucasa to 0.32 (#32508) 2020-03-05 13:34:24 -08:00
requirements.py
setup.py