diff --git a/custom_components/afvalwijzer/sensor_provider.py b/custom_components/afvalwijzer/sensor_provider.py index b26f4ae..a1a407e 100755 --- a/custom_components/afvalwijzer/sensor_provider.py +++ b/custom_components/afvalwijzer/sensor_provider.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -import hashlib + from datetime import date, datetime, timedelta from homeassistant.helpers.entity import Entity @@ -16,9 +16,6 @@ CONF_DEFAULT_LABEL, CONF_ID, CONF_INCLUDE_DATE_TODAY, - CONF_POSTAL_CODE, - CONF_STREET_NUMBER, - CONF_SUFFIX, MIN_TIME_BETWEEN_UPDATES, PARALLEL_UPDATES, SENSOR_ICON, @@ -55,14 +52,6 @@ def __init__(self, hass, waste_type, fetch_afvalwijzer_data, config): def name(self): return self._name - @property - def unique_id(self): - return hashlib.sha1( - f"{self.waste_type}{self.config.get(CONF_ID)}{self.config.get(CONF_POSTAL_CODE)}{self.config.get(CONF_STREET_NUMBER)}{self.config.get(CONF_SUFFIX,'')}".encode( - "utf-8" - ) - ).hexdigest() - @property def icon(self): return self._icon