mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Bump pychromecast to 14.0.6 (#140794)
This commit is contained in:
parent
0d1c79b427
commit
fb2b3ce7d2
@ -7,6 +7,7 @@ from dataclasses import dataclass
|
|||||||
import logging
|
import logging
|
||||||
from typing import TYPE_CHECKING, ClassVar
|
from typing import TYPE_CHECKING, ClassVar
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
from uuid import UUID
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import attr
|
import attr
|
||||||
@ -40,7 +41,7 @@ class ChromecastInfo:
|
|||||||
is_dynamic_group = attr.ib(type=bool | None, default=None)
|
is_dynamic_group = attr.ib(type=bool | None, default=None)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def friendly_name(self) -> str:
|
def friendly_name(self) -> str | None:
|
||||||
"""Return the Friendly Name."""
|
"""Return the Friendly Name."""
|
||||||
return self.cast_info.friendly_name
|
return self.cast_info.friendly_name
|
||||||
|
|
||||||
@ -50,7 +51,7 @@ class ChromecastInfo:
|
|||||||
return self.cast_info.cast_type == CAST_TYPE_GROUP
|
return self.cast_info.cast_type == CAST_TYPE_GROUP
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def uuid(self) -> bool:
|
def uuid(self) -> UUID:
|
||||||
"""Return the UUID."""
|
"""Return the UUID."""
|
||||||
return self.cast_info.uuid
|
return self.cast_info.uuid
|
||||||
|
|
||||||
@ -111,7 +112,10 @@ class ChromecastInfo:
|
|||||||
is_dynamic_group = False
|
is_dynamic_group = False
|
||||||
http_group_status = None
|
http_group_status = None
|
||||||
http_group_status = dial.get_multizone_status(
|
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,
|
services=self.cast_info.services,
|
||||||
zconf=ChromeCastZeroconf.get_zeroconf(),
|
zconf=ChromeCastZeroconf.get_zeroconf(),
|
||||||
)
|
)
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/cast",
|
"documentation": "https://www.home-assistant.io/integrations/cast",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["casttube", "pychromecast"],
|
"loggers": ["casttube", "pychromecast"],
|
||||||
"requirements": ["PyChromecast==14.0.5"],
|
"requirements": ["PyChromecast==14.0.6"],
|
||||||
"single_config_entry": true,
|
"single_config_entry": true,
|
||||||
"zeroconf": ["_googlecast._tcp.local."]
|
"zeroconf": ["_googlecast._tcp.local."]
|
||||||
}
|
}
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -45,7 +45,7 @@ ProgettiHWSW==0.1.3
|
|||||||
# PyBluez==0.22
|
# PyBluez==0.22
|
||||||
|
|
||||||
# homeassistant.components.cast
|
# homeassistant.components.cast
|
||||||
PyChromecast==14.0.5
|
PyChromecast==14.0.6
|
||||||
|
|
||||||
# homeassistant.components.flick_electric
|
# homeassistant.components.flick_electric
|
||||||
PyFlick==1.1.3
|
PyFlick==1.1.3
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -42,7 +42,7 @@ PlexAPI==4.15.16
|
|||||||
ProgettiHWSW==0.1.3
|
ProgettiHWSW==0.1.3
|
||||||
|
|
||||||
# homeassistant.components.cast
|
# homeassistant.components.cast
|
||||||
PyChromecast==14.0.5
|
PyChromecast==14.0.6
|
||||||
|
|
||||||
# homeassistant.components.flick_electric
|
# homeassistant.components.flick_electric
|
||||||
PyFlick==1.1.3
|
PyFlick==1.1.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user