Skip to content
New 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

Fixing hassfest validation #450

Merged
merged 4 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions custom_components/dahua/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 6 additions & 7 deletions custom_components/dahua/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
6 changes: 6 additions & 0 deletions custom_components/dahua/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set_infrared_mode:
domain: camera
fields:
mode:
name: Mode
description: "The infrared mode: Auto, On, Off"
example: "Auto"
default: "Auto"
Expand All @@ -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
Expand All @@ -40,6 +42,7 @@ set_video_profile_mode:
domain: camera
fields:
mode:
name: Mode
description: "The profile: Day, Night"
example: "Day"
selector:
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -303,6 +308,7 @@ set_record_mode:
domain: camera
fields:
mode:
name: Mode
description: "The mode: Auto, On, Off"
example: "Auto"
default: "Auto"
Expand Down
Loading