Bump pychromecast to 14.0.6 (#140794)

This commit is contained in:
Erik Montnemery 2025-03-17 13:19:27 +01:00 committed by GitHub
parent 0d1c79b427
commit fb2b3ce7d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 6 deletions

View File

@ -7,6 +7,7 @@ from dataclasses import dataclass
import logging
from typing import TYPE_CHECKING, ClassVar
from urllib.parse import urlparse
from uuid import UUID
import aiohttp
import attr
@ -40,7 +41,7 @@ class ChromecastInfo:
is_dynamic_group = attr.ib(type=bool | None, default=None)
@property
def friendly_name(self) -> str:
def friendly_name(self) -> str | None:
"""Return the Friendly Name."""
return self.cast_info.friendly_name
@ -50,7 +51,7 @@ class ChromecastInfo:
return self.cast_info.cast_type == CAST_TYPE_GROUP
@property
def uuid(self) -> bool:
def uuid(self) -> UUID:
"""Return the UUID."""
return self.cast_info.uuid
@ -111,7 +112,10 @@ class ChromecastInfo:
is_dynamic_group = False
http_group_status = None
http_group_status = dial.get_multizone_status(
None,
# We pass services which will be used for the HTTP request, and we
# don't care about the host in http_group_status.dynamic_groups so
# we pass an empty string to simplify the code.
"",
services=self.cast_info.services,
zconf=ChromeCastZeroconf.get_zeroconf(),
)

View File

@ -14,7 +14,7 @@
"documentation": "https://www.home-assistant.io/integrations/cast",
"iot_class": "local_polling",
"loggers": ["casttube", "pychromecast"],
"requirements": ["PyChromecast==14.0.5"],
"requirements": ["PyChromecast==14.0.6"],
"single_config_entry": true,
"zeroconf": ["_googlecast._tcp.local."]
}

2
requirements_all.txt generated
View File

@ -45,7 +45,7 @@ ProgettiHWSW==0.1.3
# PyBluez==0.22
# homeassistant.components.cast
PyChromecast==14.0.5
PyChromecast==14.0.6
# homeassistant.components.flick_electric
PyFlick==1.1.3

View File

@ -42,7 +42,7 @@ PlexAPI==4.15.16
ProgettiHWSW==0.1.3
# homeassistant.components.cast
PyChromecast==14.0.5
PyChromecast==14.0.6
# homeassistant.components.flick_electric
PyFlick==1.1.3