diff --git a/custom_components/dahua/__init__.py b/custom_components/dahua/__init__.py index 154abd0..318b438 100755 --- a/custom_components/dahua/__init__.py +++ b/custom_components/dahua/__init__.py @@ -50,16 +50,6 @@ _LOGGER: logging.Logger = logging.getLogger(__package__) - -async def async_setup(hass: HomeAssistant, config: ConfigType): - """ - Set up this integration with the UI. YAML is not supported. - https://developers.home-assistant.io/docs/asyncio_working_with_async/ - """ - hass.data.setdefault(DOMAIN, {}) - return True - - async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): """Set up this integration using UI.""" if hass.data.get(DOMAIN) is None: diff --git a/custom_components/dahua/manifest.json b/custom_components/dahua/manifest.json index 39d6494..9d38408 100755 --- a/custom_components/dahua/manifest.json +++ b/custom_components/dahua/manifest.json @@ -1,14 +1,13 @@ { "domain": "dahua", "name": "Dahua", - "iot_class": "local_polling", - "documentation": "https://github.com/rroller/dahua", - "issue_tracker": "https://github.com/rroller/dahua/issues", - "dependencies": [], - "version": "0.9.71", - "config_flow": true, + "after_dependencies": ["tag"], "codeowners": [ "@rroller" ], - "requirements": [] + "config_flow": true, + "documentation": "https://github.com/rroller/dahua", + "iot_class": "local_polling", + "issue_tracker": "https://github.com/rroller/dahua/issues", + "version": "0.9.71" } diff --git a/custom_components/dahua/services.yaml b/custom_components/dahua/services.yaml index 4555ea7..0eac315 100755 --- a/custom_components/dahua/services.yaml +++ b/custom_components/dahua/services.yaml @@ -10,6 +10,7 @@ set_infrared_mode: domain: camera fields: mode: + name: Mode description: "The infrared mode: Auto, On, Off" example: "Auto" default: "Auto" @@ -20,6 +21,7 @@ set_infrared_mode: - "On" - "Off" brightness: + name: Brightness description: The infrared brightness, from 0 to 100 inclusive. 100 is the brightest example: 100 default: 100 @@ -40,6 +42,7 @@ set_video_profile_mode: domain: camera fields: mode: + name: Mode description: "The profile: Day, Night" example: "Day" selector: @@ -266,6 +269,7 @@ set_video_in_day_night_mode: domain: camera fields: config_type: + name: Config Type description: "The config type: general, day, night" example: "general" default: "general" @@ -276,6 +280,7 @@ set_video_in_day_night_mode: - "day" - "night" mode: + name: Mode description: "The mode: Auto, Color, BlackWhite. Note Auto is also known as Brightness by Dahua" example: "Auto" default: "Auto" @@ -303,6 +308,7 @@ set_record_mode: domain: camera fields: mode: + name: Mode description: "The mode: Auto, On, Off" example: "Auto" default: "Auto"