Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #173 from AaronDavidSchneider/disable
Browse files Browse the repository at this point in the history
skip config, print error and update dependencies
  • Loading branch information
AaronDavidSchneider authored Jul 8, 2021
2 parents 04836d5 + 6b92785 commit 192ae1e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions custom_components/fritzbox_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

_LOGGER = logging.getLogger(__name__)

CONF_OUTDATED = True

async def async_setup(hass: HomeAssistantType, config: ConfigType) -> bool:
"""Set up FRITZ!Box Tools component."""
Expand All @@ -52,7 +53,17 @@ async def async_setup(hass: HomeAssistantType, config: ConfigType) -> bool:

async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry) -> bool:
"""Set up fritzboxtools from config entry."""

if CONF_OUTDATED:
hass.components.persistent_notification.async_create(
"Please uninstall ha-fritzbox-tools and use the core integration fritz instead. Thanks for using ha-fritzbox-tools in the past.",
title="Fritzboxtools is outdated!",
notification_id="hafritzboxtools_outdated",
)
return False

_LOGGER.debug("Setting up FRITZ!Box Tools component")

host = entry.data.get(CONF_HOST, DEFAULT_HOST)
port = entry.data.get(CONF_PORT, DEFAULT_PORT)
username = entry.data.get(CONF_USERNAME)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/fritzbox_tools/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"documentation": "https://github.com/mammuth/ha-fritzbox-tools/blob/master/README.md",
"codeowners": ["@mammuth"],
"dependencies": [],
"requirements": ["fritzconnection==1.4.0", "fritzprofiles==0.5.2", "xmltodict==0.12.0"],
"requirements": ["fritzconnection==1.4.2", "fritzprofiles==0.6.1", "xmltodict==0.12.0"],
"config_flow": true,
"ssdp": [
{
Expand Down

0 comments on commit 192ae1e

Please sign in to comment.