Skip to content

Commit

Permalink
Fix and bump apsystems-ez1 to 2.4.0 (home-assistant#130740)
Browse files Browse the repository at this point in the history
  • Loading branch information
patman15 authored and dotvav committed Nov 17, 2024
1 parent f5e04c4 commit 3ff3468
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/apsystems/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ApSystemsConfigEntry) ->
ip_address=entry.data[CONF_IP_ADDRESS],
port=entry.data.get(CONF_PORT, DEFAULT_PORT),
timeout=8,
enable_debounce=True,
)
coordinator = ApSystemsDataCoordinator(hass, api)
await coordinator.async_config_entry_first_refresh()
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/apsystems/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/apsystems",
"integration_type": "device",
"iot_class": "local_polling",
"requirements": ["apsystems-ez1==2.2.1"]
"requirements": ["apsystems-ez1==2.4.0"]
}
3 changes: 2 additions & 1 deletion homeassistant/components/apsystems/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import Any

from aiohttp.client_exceptions import ClientConnectionError
from APsystemsEZ1 import InverterReturnedError

from homeassistant.components.switch import SwitchDeviceClass, SwitchEntity
from homeassistant.core import HomeAssistant
Expand Down Expand Up @@ -40,7 +41,7 @@ async def async_update(self) -> None:
"""Update switch status and availability."""
try:
status = await self._api.get_device_power_status()
except (TimeoutError, ClientConnectionError):
except (TimeoutError, ClientConnectionError, InverterReturnedError):
self._attr_available = False
else:
self._attr_available = True
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ apprise==1.9.0
aprslib==0.7.2

# homeassistant.components.apsystems
apsystems-ez1==2.2.1
apsystems-ez1==2.4.0

# homeassistant.components.aqualogic
aqualogic==2.6
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ apprise==1.9.0
aprslib==0.7.2

# homeassistant.components.apsystems
apsystems-ez1==2.2.1
apsystems-ez1==2.4.0

# homeassistant.components.aranet
aranet4==2.4.0
Expand Down

0 comments on commit 3ff3468

Please sign in to comment.