Skip to content

Commit

Permalink
Remove old backward check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jan 4, 2024
1 parent ca812ac commit 80505b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
7 changes: 4 additions & 3 deletions custom_components/sonoff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
CONF_TIMEOUT,
CONF_USERNAME,
EVENT_HOMEASSISTANT_STOP,
MAJOR_VERSION,
MINOR_VERSION,
)
from homeassistant.core import HomeAssistant, ServiceCall
from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady
Expand All @@ -24,7 +26,6 @@
from homeassistant.helpers.storage import Store

from . import system_health
from .core import backward
from .core import devices as core_devices
from .core.const import (
CONF_APPID,
Expand Down Expand Up @@ -95,8 +96,8 @@


async def async_setup(hass: HomeAssistant, config: dict) -> bool:
if not backward.hass_version_supported:
return False
if (MAJOR_VERSION, MINOR_VERSION) < (2023, 1):
raise Exception("unsupported hass version")

# init storage for registries
hass.data[DOMAIN] = {}
Expand Down
16 changes: 0 additions & 16 deletions custom_components/sonoff/core/backward.py

This file was deleted.

0 comments on commit 80505b8

Please sign in to comment.