Skip to content

Commit

Permalink
Add issue_tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
ankohanse committed Dec 11, 2023
1 parent 68e9344 commit 83993c7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
6 changes: 4 additions & 2 deletions custom_compoments/dabpumps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
DOMAIN,
HUB,
COORDINATOR,
PLATFORMS,
STARTUP_MESSAGE
)

Expand All @@ -31,6 +30,10 @@
_LOGGER.info(STARTUP_MESSAGE)


PLATFORMS: list[Platform] = [
Platform.SENSOR
]

CONFIG_SCHEMA = vol.Schema(
{
DOMAIN: vol.Schema({
Expand All @@ -41,7 +44,6 @@
)



async def async_setup(hass, config):
"""Set up DAB Pumps components."""
hass.data.setdefault(DOMAIN, {})
Expand Down
12 changes: 4 additions & 8 deletions custom_compoments/dabpumps/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@
DEFAULT_USERNAME = "[email protected]"
DEFAULT_PASSWORD = ""

CONFIG_SCHEMA = vol.Schema(
{
vol.Required(CONF_USERNAME, default=DEFAULT_USERNAME): str,
vol.Required(CONF_PASSWORD, default=DEFAULT_PASSWORD): str,
}
)


@config_entries.HANDLERS.register("dabpumps")
class ConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
Expand Down Expand Up @@ -110,7 +103,10 @@ async def async_step_user(self, user_input=None) -> FlowResult:

return self.async_show_form(
step_id = "user",
data_schema = CONFIG_SCHEMA,
data_schema = vol.Schema({
vol.Required(CONF_USERNAME, default=DEFAULT_USERNAME): str,
vol.Required(CONF_PASSWORD, default=DEFAULT_PASSWORD): str,
}),
errors = self._errors
)

Expand Down
2 changes: 0 additions & 2 deletions custom_compoments/dabpumps/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
VERSION="2023.12.1"
ISSUE_URL = "https://github.com/ankoh/dabpumps/issues"


PLATFORMS: list[Platform] = [Platform.SENSOR]
HUB = "Hub"
COORDINATOR = "Coordinator"

Expand Down
1 change: 1 addition & 0 deletions custom_compoments/dabpumps/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/ankohanse/hass-dab-pumps",
"issue_tracker": "https://github.com/ankohanse/hass-dab-pumps/issues",
"integration_type": "hub",
"iot_class": "cloud_polling",
"requirements": [],
Expand Down

0 comments on commit 83993c7

Please sign in to comment.