Skip to content

Commit

Permalink
Renamed Alpha Home to Alpha Innotec
Browse files Browse the repository at this point in the history
  • Loading branch information
arjenbos committed Oct 31, 2023
1 parent a1ea6ff commit 195ba3b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions custom_components/alpha_innotec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@


async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> True:
"""Set up Alpha Home from config entry."""
_LOGGER.debug("Setting up Alpha Home component")
"""Set up Alpha Innotec from config entry."""
_LOGGER.debug("Setting up Alpha Innotec component")

controller_api = ControllerAPI(entry.data['controller_ip'], entry.data['controller_username'], entry.data['controller_password'])
controller_api = await hass.async_add_executor_job(controller_api.login)
Expand All @@ -30,7 +30,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> True:


async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Unload Alpha Home config entry."""
"""Unload Alpha Innotec config entry."""
unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)

if unload_ok:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/alpha_innotec/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def validate_input(data: dict) -> dict:


class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Alpha Home."""
"""Handle a config flow for Alpha Innotec."""

VERSION = 1

Expand All @@ -53,7 +53,7 @@ async def async_step_user(
try:
system_information = await self.hass.async_add_executor_job(validate_input, user_input)

return self.async_create_entry(title=system_information.get("name", "Alpha Home"), data=user_input)
return self.async_create_entry(title=system_information.get("name", "Alpha Innotec"), data=user_input)
except CannotConnect:
errors["base"] = "cannot_connect"
except Exception as exception:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/alpha_innotec/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"controller_username": "Controller username",
"controller_password": "Controller password"
},
"description": "Set up Alpha Home."
"description": "Set up Alpha Innotec."
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Test the Alpha Home config flow."""
"""Test the Alpha Innotec config flow."""
import json
from unittest.mock import patch
from homeassistant import config_entries, setup
Expand Down

1 comment on commit 195ba3b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HA Alpha Innotec Coverage

HA Alpha Innotec
FileStmtsMissCoverMissing
__init__.py21957%19–20, 22, 27, 29, 34, 36–37, 39
api.py44295%48, 51
base_coordinator.py36360%2, 4, 6, 8–11, 13, 16, 18–21, 23, 25–26, 28–31, 33–34, 36–38, 40, 42–44, 46, 58–60, 62–64
binary_sensor.py67670%2, 4–5, 7, 9–12, 17–19, 21, 24, 27, 29, 31, 33, 35, 37–38, 45, 48, 51, 53, 60, 62, 65, 67, 69–70, 72–73, 75–76, 85, 87, 89, 92, 95, 97–101, 103–104, 106, 114–116, 118–119, 121, 123–125, 127–129, 131–136, 138–139
climate.py81810%2, 4–5, 7, 9, 13–15, 20–23, 25, 28, 31–32, 34, 36, 38, 40–41, 49, 52, 55, 57, 64–65, 67, 73, 76, 79–81, 85, 87–93, 95–96, 98, 106–107, 109, 111–112, 115, 117–119, 121–122, 124–126, 128–129, 131, 133, 136–137, 139–141, 143, 145–146, 148, 150, 152–154, 156–157, 159, 161–162, 165
config_flow.py371559%24–25, 27–30, 32–35, 57–61
const.py70100% 
controller_api.py765922%17–18, 20–21, 23–26, 28, 30–33, 35, 38, 40, 43, 45, 50, 52–55, 57, 59–60, 62, 64, 71, 73, 80–81, 83, 85, 87, 89, 91–92, 94, 97, 100–101, 103–106, 108, 111, 114, 120, 122–126, 138–140, 142
gateway_api.py624724%17–19, 21–23, 26–27, 29–30, 32–35, 37, 39–42, 44, 47, 49, 52, 54, 59, 61, 63–65, 67, 69–70, 72, 74, 77, 79, 81–82, 84, 87–88, 90, 93, 96–98, 100
sensor.py55550%2, 4–5, 7–10, 15–18, 20, 23, 26–27, 29, 31, 33, 35–38, 40, 47, 50, 53, 55, 62–63, 65, 71, 74, 77–78, 80, 82–86, 88–89, 91, 99–100, 102, 104–109, 111, 113–114
structs
   Thermostat.py11918%8–16
TOTAL49738023% 

Tests Skipped Failures Errors Time
3 0 💤 0 ❌ 0 🔥 0.727s ⏱️

Please sign in to comment.