Skip to content

Commit 6974f61

Browse files
authored
2 parents a5eb816 + e7bdf14 commit 6974f61

File tree

29 files changed

+151
-49
lines changed

29 files changed

+151
-49
lines changed

homeassistant/components/fjaraskupan/light.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
from typing import Any
66

7-
from fjaraskupan import COMMAND_LIGHT_ON_OFF
8-
97
from homeassistant.components.light import ATTR_BRIGHTNESS, ColorMode, LightEntity
108
from homeassistant.config_entries import ConfigEntry
119
from homeassistant.core import HomeAssistant
@@ -62,7 +60,6 @@ async def async_turn_off(self, **kwargs: Any) -> None:
6260
if self.is_on:
6361
async with self.coordinator.async_connect_and_update() as device:
6462
await device.send_dim(0)
65-
await device.send_command(COMMAND_LIGHT_ON_OFF)
6663

6764
@property
6865
def is_on(self) -> bool:

homeassistant/components/fjaraskupan/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"documentation": "https://www.home-assistant.io/integrations/fjaraskupan",
1515
"iot_class": "local_polling",
1616
"loggers": ["bleak", "fjaraskupan"],
17-
"requirements": ["fjaraskupan==2.3.0"]
17+
"requirements": ["fjaraskupan==2.3.2"]
1818
}

homeassistant/components/freebox/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"documentation": "https://www.home-assistant.io/integrations/freebox",
88
"iot_class": "local_polling",
99
"loggers": ["freebox_api"],
10-
"requirements": ["freebox-api==1.1.0"],
10+
"requirements": ["freebox-api==1.2.1"],
1111
"zeroconf": ["_fbx-api._tcp.local."]
1212
}

homeassistant/components/gardena_bluetooth/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"documentation": "https://www.home-assistant.io/integrations/gardena_bluetooth",
1515
"iot_class": "local_polling",
1616
"loggers": ["bleak", "bleak_esphome", "gardena_bluetooth"],
17-
"requirements": ["gardena-bluetooth==1.4.4"]
17+
"requirements": ["gardena-bluetooth==1.5.0"]
1818
}

homeassistant/components/integration/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def _schedule_max_sub_interval_exceeded_if_state_is_numeric(
576576
if (
577577
self._max_sub_interval is not None
578578
and source_state is not None
579-
and (source_state_dec := _decimal_state(source_state.state))
579+
and (source_state_dec := _decimal_state(source_state.state)) is not None
580580
):
581581

582582
@callback

homeassistant/components/mqtt/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ async def async_connect(self, client_available: asyncio.Future[bool]) -> None:
661661
self.conf.get(CONF_PORT, DEFAULT_PORT),
662662
self.conf.get(CONF_KEEPALIVE, DEFAULT_KEEPALIVE),
663663
)
664-
except OSError as err:
664+
except (OSError, mqtt.WebsocketConnectionError) as err:
665665
_LOGGER.error("Failed to connect to MQTT server due to exception: %s", err)
666666
self._async_connection_result(False)
667667
finally:

homeassistant/components/music_assistant/media_player.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -566,17 +566,13 @@ def _update_media_attributes(
566566
# shuffle and repeat are not (yet) supported for external sources
567567
self._attr_shuffle = None
568568
self._attr_repeat = None
569-
if TYPE_CHECKING:
570-
assert player.elapsed_time is not None
571-
self._attr_media_position = int(player.elapsed_time)
569+
self._attr_media_position = int(player.elapsed_time or 0)
572570
self._attr_media_position_updated_at = (
573571
utc_from_timestamp(player.elapsed_time_last_updated)
574572
if player.elapsed_time_last_updated
575573
else None
576574
)
577-
if TYPE_CHECKING:
578-
assert player.elapsed_time is not None
579-
self._prev_time = player.elapsed_time
575+
self._prev_time = player.elapsed_time or 0
580576
return
581577

582578
if queue is None:

homeassistant/components/nice_go/const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
REFRESH_TOKEN_EXPIRY_TIME = timedelta(days=30)
1616

1717
SUPPORTED_DEVICE_TYPES = {
18-
Platform.LIGHT: ["WallStation"],
19-
Platform.SWITCH: ["WallStation"],
18+
Platform.LIGHT: ["WallStation", "WallStation_ESP32"],
19+
Platform.SWITCH: ["WallStation", "WallStation_ESP32"],
2020
}
2121
KNOWN_UNSUPPORTED_DEVICE_TYPES = {
2222
Platform.LIGHT: ["Mms100"],

homeassistant/components/nice_go/coordinator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ async def on_data(self, data: dict[str, Any]) -> None:
239239
].type, # Device type is not sent in device state update, and it can't change, so we just reuse the existing one
240240
BarrierState(
241241
deviceId=raw_data["deviceId"],
242-
desired=json.loads(raw_data["desired"]),
243242
reported=json.loads(raw_data["reported"]),
244243
connectionState=ConnectionState(
245244
connected=raw_data["connectionState"]["connected"],

homeassistant/components/nice_go/cover.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
DEVICE_CLASSES = {
2222
"WallStation": CoverDeviceClass.GARAGE,
2323
"Mms100": CoverDeviceClass.GATE,
24+
"WallStation_ESP32": CoverDeviceClass.GARAGE,
2425
}
2526
PARALLEL_UPDATES = 1
2627

0 commit comments

Comments
 (0)