From 2b76d7fae0ef993c8a0a19045f865f83f32c4826 Mon Sep 17 00:00:00 2001 From: b-rowan Date: Mon, 22 Jan 2024 18:47:11 -0700 Subject: [PATCH] Remove unused code, and bump pyasic to remove cache on get_miner. --- custom_components/miner/manifest.json | 4 ++-- custom_components/miner/sensor.py | 18 ------------------ requirements.txt | 2 +- 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/custom_components/miner/manifest.json b/custom_components/miner/manifest.json index d352035..94662c0 100644 --- a/custom_components/miner/manifest.json +++ b/custom_components/miner/manifest.json @@ -7,8 +7,8 @@ "homekit": {}, "iot_class": "local_polling", "issue_tracker": "https://github.com/Schnitzel/hass-miner/issues", - "requirements": ["pyasic==0.48.2"], + "requirements": ["pyasic==0.48.4"], "ssdp": [], - "version": "1.1.0", + "version": "1.1.1b3", "zeroconf": [] } diff --git a/custom_components/miner/sensor.py b/custom_components/miner/sensor.py index 6728740..10bb8ee 100644 --- a/custom_components/miner/sensor.py +++ b/custom_components/miner/sensor.py @@ -189,12 +189,6 @@ def device_info(self) -> entity.DeviceInfo: name=f"{self.coordinator.entry.title}", ) - @callback - def _handle_coordinator_update(self) -> None: - """Handle updated data from the coordinator.""" - - super()._handle_coordinator_update() - @property def native_value(self) -> StateType: """Return the state of the sensor.""" @@ -248,12 +242,6 @@ def device_info(self) -> entity.DeviceInfo: name=f"{self.coordinator.entry.title}", ) - @callback - def _handle_coordinator_update(self) -> None: - """Handle updated data from the coordinator.""" - - super()._handle_coordinator_update() - @property def native_value(self) -> StateType: """Return the state of the sensor.""" @@ -307,12 +295,6 @@ def device_info(self) -> entity.DeviceInfo: name=f"{self.coordinator.entry.title}", ) - @callback - def _handle_coordinator_update(self) -> None: - """Handle updated data from the coordinator.""" - - super()._handle_coordinator_update() - @property def native_value(self) -> StateType: """Return the state of the sensor.""" diff --git a/requirements.txt b/requirements.txt index d794013..7d1806e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,5 @@ colorlog==6.7.0 homeassistant>=2024.1.0 pip>=21.0,<23.2 ruff==0.0.267 -pyasic==0.48.2 +pyasic==0.48.4 pre-commit