Skip to content

Commit

Permalink
Remove unused code, and bump pyasic to remove cache on get_miner.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rowan committed Jan 23, 2024
1 parent 49e0a16 commit 2b76d7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
4 changes: 2 additions & 2 deletions custom_components/miner/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": []
}
18 changes: 0 additions & 18 deletions custom_components/miner/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down Expand Up @@ -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."""
Expand Down Expand Up @@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2b76d7f

Please sign in to comment.