Bump aiovodafone to 0.1.0 (#99851)

* bump aiovodafone to 0.1.0

* fix tests
This commit is contained in:
Simone Chemelli 2023-09-08 00:32:15 +02:00 committed by GitHub
parent 9d5595fd7d
commit a82cd48282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -112,9 +112,9 @@ class VodafoneStationRouter(DataUpdateCoordinator[UpdateCoordinatorDataType]):
dev_info, utc_point_in_time
),
)
for dev_info in (await self.api.get_all_devices()).values()
for dev_info in (await self.api.get_devices_data()).values()
}
data_sensors = await self.api.get_user_data()
data_sensors = await self.api.get_sensor_data()
await self.api.logout()
return UpdateCoordinatorDataType(data_devices, data_sensors)

View File

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/vodafone_station",
"iot_class": "local_polling",
"loggers": ["aiovodafone"],
"requirements": ["aiovodafone==0.0.6"]
"requirements": ["aiovodafone==0.1.0"]
}

View File

@ -370,7 +370,7 @@ aiounifi==61
aiovlc==0.1.0
# homeassistant.components.vodafone_station
aiovodafone==0.0.6
aiovodafone==0.1.0
# homeassistant.components.waqi
aiowaqi==0.2.1

View File

@ -345,7 +345,7 @@ aiounifi==61
aiovlc==0.1.0
# homeassistant.components.vodafone_station
aiovodafone==0.0.6
aiovodafone==0.1.0
# homeassistant.components.watttime
aiowatttime==0.1.1

View File

@ -78,7 +78,7 @@ async def test_exception_connection(hass: HomeAssistant, side_effect, error) ->
# Should be recoverable after hits error
with patch(
"homeassistant.components.vodafone_station.config_flow.VodafoneStationApi.get_all_devices",
"homeassistant.components.vodafone_station.config_flow.VodafoneStationApi.get_devices_data",
return_value={
"wifi_user": "on|laptop|device-1|xx:xx:xx:xx:xx:xx|192.168.100.1||2.4G",
"ethernet": "laptop|device-2|yy:yy:yy:yy:yy:yy|192.168.100.2|;",
@ -191,7 +191,7 @@ async def test_reauth_not_successful(hass: HomeAssistant, side_effect, error) ->
# Should be recoverable after hits error
with patch(
"homeassistant.components.vodafone_station.config_flow.VodafoneStationApi.get_all_devices",
"homeassistant.components.vodafone_station.config_flow.VodafoneStationApi.get_devices_data",
return_value={
"wifi_user": "on|laptop|device-1|xx:xx:xx:xx:xx:xx|192.168.100.1||2.4G",
"ethernet": "laptop|device-2|yy:yy:yy:yy:yy:yy|192.168.100.2|;",