Skip to content

Commit

Permalink
Added config_schema and fixed domain
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderBlom committed Dec 8, 2023
1 parent bac5c5b commit 9bb8c13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions custom_components/bir/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers import config_validation as cv

CONFIG_SCHEMA = cv.config_entry_only_config_schema()

async def async_setup(hass: HomeAssistant, config: dict):
return True
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bir/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from urllib.parse import urlparse, parse_qs
from homeassistant import config_entries

class TrashScheduleConfigFlow(config_entries.ConfigFlow, domain="BIR_Waste_Watch"):
class TrashScheduleConfigFlow(config_entries.ConfigFlow, domain="bir"):
async def async_step_user(self, user_input=None):
errors = {}

Expand Down

0 comments on commit 9bb8c13

Please sign in to comment.