Skip to content

Commit

Permalink
Merge pull request #4 from SanderBlom/fix_config-schema_warning
Browse files Browse the repository at this point in the history
Fix config schema warning
  • Loading branch information
SanderBlom authored Dec 8, 2023
2 parents 60b1e65 + 9bb8c13 commit ebecf46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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
4 changes: 2 additions & 2 deletions 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 All @@ -29,7 +29,7 @@ async def async_step_user(self, user_input=None):
step_id="user",
data_schema=vol.Schema(
{
vol.Required("url", default="https://bir.no/adressesoek/yourCustomUUIDandAddress"): str,
vol.Required("url", default=""): str,
}
),
errors=errors
Expand Down

0 comments on commit ebecf46

Please sign in to comment.