-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
calender fully linked to coordinator
- Loading branch information
1 parent
d2cd8a3
commit 6916db1
Showing
6 changed files
with
159 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from homeassistant import config_entries | ||
from .const import DOMAIN | ||
import voluptuous as vol | ||
|
||
|
||
class ExampleConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): | ||
"""Example config flow.""" | ||
# The schema version of the entries that it creates | ||
# Home Assistant will call your migrate method if the version changes | ||
VERSION = 1 | ||
MINOR_VERSION = 1 | ||
|
||
|
||
async def async_step_user(self, user_input): | ||
|
||
if user_input is not None: | ||
team = user_input.get('team') | ||
|
||
await self.async_set_unique_id(f"{team}") | ||
self._abort_if_unique_id_configured() | ||
|
||
return self.async_create_entry(title=f"{team}", data=user_input) | ||
|
||
|
||
|
||
return self.async_show_form( | ||
step_id="user", | ||
data_schema=vol.Schema({vol.Required('team'): str}), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
from __future__ import annotations | ||
from homeassistant.helpers.update_coordinator import CoordinatorEntity | ||
from .coordinator import MyCoordinator | ||
|
||
|
||
class RbfaEntity(CoordinatorEntity[MyCoordinator]): | ||
"""Defines an Elgato entity.""" | ||
|
||
_attr_has_entity_name = True | ||
|
||
def __init__(self, coordinator: MyCoordinator) -> None: | ||
"""Initialize an Elgato entity.""" | ||
super().__init__(coordinator=coordinator) |
Oops, something went wrong.