mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-12-06 18:44:14 -05:00
Address nitpick comments
This commit is contained in:
@@ -139,6 +139,7 @@ class OasisDeviceCoordinator(DataUpdateCoordinator[list[OasisDevice]]):
|
|||||||
if removed_serials:
|
if removed_serials:
|
||||||
device_registry = dr.async_get(self.hass)
|
device_registry = dr.async_get(self.hass)
|
||||||
for serial in removed_serials:
|
for serial in removed_serials:
|
||||||
|
self._initialized_serials.discard(serial)
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"Oasis device %s removed from account; cleaning up in HA",
|
"Oasis device %s removed from account; cleaning up in HA",
|
||||||
serial,
|
serial,
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ class OasisDevice:
|
|||||||
_LOGGER.exception("Error in update listener")
|
_LOGGER.exception("Error in update listener")
|
||||||
|
|
||||||
async def async_get_status(self) -> None:
|
async def async_get_status(self) -> None:
|
||||||
"""Request the device update it's current status."""
|
"""Request that the device update its current status."""
|
||||||
client = self._require_client()
|
client = self._require_client()
|
||||||
await client.async_get_status(self)
|
await client.async_get_status(self)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user