Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-PyChromecast for
openSUSE:Factory checked in at 2023-01-03 15:05:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PyChromecast (Old)
and /work/SRC/openSUSE:Factory/.python-PyChromecast.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PyChromecast"
Tue Jan 3 15:05:31 2023 rev:22 rq:1046304 version:13.0.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PyChromecast/python-PyChromecast.changes
2022-12-06 14:24:03.429975581 +0100
+++
/work/SRC/openSUSE:Factory/.python-PyChromecast.new.1563/python-PyChromecast.changes
2023-01-03 15:05:53.826696076 +0100
@@ -1,0 +2,10 @@
+Mon Jan 2 20:18:36 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 13.0.4:
+ * Correct timeout in call to poll.poll
+ * Adding support for reported unknown devices
+ * Add Chromecast Ultra and Chromecast HD to the recognised devices
+ * Fix error with select when python process exceeds 1024 open file
descriptors
+ * Include URL and UUID in Home Assistant controller messages
+
+-------------------------------------------------------------------
Old:
----
PyChromecast-13.0.1.tar.gz
New:
----
PyChromecast-13.0.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-PyChromecast.spec ++++++
--- /var/tmp/diff_new_pack.ura44w/_old 2023-01-03 15:05:54.278698714 +0100
+++ /var/tmp/diff_new_pack.ura44w/_new 2023-01-03 15:05:54.282698737 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-PyChromecast
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-PyChromecast
-Version: 13.0.1
+Version: 13.0.4
Release: 0
Summary: Python module to talk to Google Chromecast
License: MIT
++++++ PyChromecast-13.0.1.tar.gz -> PyChromecast-13.0.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyChromecast-13.0.1/PKG-INFO
new/PyChromecast-13.0.4/PKG-INFO
--- old/PyChromecast-13.0.1/PKG-INFO 2022-11-21 13:38:21.985876800 +0100
+++ new/PyChromecast-13.0.4/PKG-INFO 2022-12-13 08:18:42.790731700 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: PyChromecast
-Version: 13.0.1
+Version: 13.0.4
Summary: Python module to talk to Google Chromecast.
Home-page: https://github.com/balloob/pychromecast
Author: Paulus Schoutsen
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyChromecast-13.0.1/PyChromecast.egg-info/PKG-INFO
new/PyChromecast-13.0.4/PyChromecast.egg-info/PKG-INFO
--- old/PyChromecast-13.0.1/PyChromecast.egg-info/PKG-INFO 2022-11-21
13:38:21.000000000 +0100
+++ new/PyChromecast-13.0.4/PyChromecast.egg-info/PKG-INFO 2022-12-13
08:18:42.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: PyChromecast
-Version: 13.0.1
+Version: 13.0.4
Summary: Python module to talk to Google Chromecast.
Home-page: https://github.com/balloob/pychromecast
Author: Paulus Schoutsen
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyChromecast-13.0.1/pychromecast/const.py
new/PyChromecast-13.0.4/pychromecast/const.py
--- old/PyChromecast-13.0.1/pychromecast/const.py 2022-11-21
13:38:12.000000000 +0100
+++ new/PyChromecast-13.0.4/pychromecast/const.py 2022-12-13
08:18:33.000000000 +0100
@@ -9,25 +9,45 @@
CAST_TYPE_GROUP = "group"
MF_GOOGLE = "Google Inc."
+MF_LENOVO = "LENOVO"
+MF_LG = "LG"
+MF_MARSHALL = "Marshall"
+MF_NVIDIA = "NVIDIA"
+MF_PHILIPS = "Philips"
+MF_PIONEER = "Pioneer"
+MF_SONY = "Sony"
+MF_VIZIO = "Vizio"
+MF_WNC = "wnc"
+MF_XIAOMI = "Xiaomi"
CAST_TYPES = {
"chromecast audio": (CAST_TYPE_AUDIO, MF_GOOGLE),
"chromecast": (CAST_TYPE_CHROMECAST, MF_GOOGLE),
+ "chromecast hd": (CAST_TYPE_CHROMECAST, MF_GOOGLE),
+ "chromecast ultra": (CAST_TYPE_CHROMECAST, MF_GOOGLE),
"eureka dongle": (CAST_TYPE_CHROMECAST, MF_GOOGLE),
"google cast group": (CAST_TYPE_GROUP, MF_GOOGLE),
"google home mini": (CAST_TYPE_AUDIO, MF_GOOGLE),
"google home": (CAST_TYPE_AUDIO, MF_GOOGLE),
- "google nest hub": (CAST_TYPE_CHROMECAST, MF_GOOGLE),
"google nest hub max": (CAST_TYPE_CHROMECAST, MF_GOOGLE),
+ "google nest hub": (CAST_TYPE_CHROMECAST, MF_GOOGLE),
"google nest mini": (CAST_TYPE_AUDIO, MF_GOOGLE),
- "lenovocd-24502f": (CAST_TYPE_AUDIO, "LENOVO"),
- "mitv-mssp2": (CAST_TYPE_CHROMECAST, "Xiaomi"),
"nest audio": (CAST_TYPE_AUDIO, MF_GOOGLE),
"nest wifi point": (CAST_TYPE_AUDIO, MF_GOOGLE),
- "shield android tv": (CAST_TYPE_CHROMECAST, "NVIDIA"),
- "bravia 4k vh2": (CAST_TYPE_CHROMECAST, "Sony"),
- "marshall stanmore ii": (CAST_TYPE_AUDIO, "Unknown manufacturer"),
- "C4A": (CAST_TYPE_AUDIO, "Sony Corporation"),
+ "bravia 4k vh2": (CAST_TYPE_CHROMECAST, MF_SONY),
+ "C4A": (CAST_TYPE_AUDIO, MF_SONY),
+ "lenovocd-24502f": (CAST_TYPE_AUDIO, MF_LENOVO),
+ "Lenovo Smart Display 7": (CAST_TYPE_CHROMECAST, MF_LENOVO),
+ "LG WK7 ThinQ Speaker": (CAST_TYPE_AUDIO, MF_LG),
+ "marshall stanmore ii": (CAST_TYPE_AUDIO, MF_MARSHALL),
+ "mitv-mssp2": (CAST_TYPE_CHROMECAST, MF_XIAOMI),
+ "Pioneer VSX-831": (CAST_TYPE_AUDIO, MF_PIONEER),
+ "Pioneer VSX-1131": (CAST_TYPE_AUDIO, MF_PIONEER),
+ "Pioneer VSX-LX305": (CAST_TYPE_AUDIO, MF_PIONEER),
+ "shield android tv": (CAST_TYPE_CHROMECAST, MF_NVIDIA),
+ "Stream TV": (CAST_TYPE_CHROMECAST, MF_WNC),
+ "TPM191E": (CAST_TYPE_CHROMECAST, MF_PHILIPS),
+ "V705-H3": (CAST_TYPE_CHROMECAST, MF_VIZIO),
}
SERVICE_TYPE_HOST = "host"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/PyChromecast-13.0.1/pychromecast/controllers/homeassistant.py
new/PyChromecast-13.0.4/pychromecast/controllers/homeassistant.py
--- old/PyChromecast-13.0.1/pychromecast/controllers/homeassistant.py
2022-11-21 13:38:12.000000000 +0100
+++ new/PyChromecast-13.0.4/pychromecast/controllers/homeassistant.py
2022-12-13 08:18:33.000000000 +0100
@@ -17,6 +17,7 @@
def __init__(
self,
hass_url,
+ hass_uuid,
client_id,
refresh_token,
app_namespace=APP_NAMESPACE,
@@ -24,6 +25,7 @@
):
super().__init__(app_namespace, app_id)
self.hass_url = hass_url
+ self.hass_uuid = hass_uuid
self.client_id = client_id
self.refresh_token = refresh_token
# {
@@ -45,6 +47,7 @@
self.status is not None
and self.status["connected"]
and self.status["hassUrl"] == self.hass_url
+ and self.status["hassUUID"] == self.hass_uuid
)
def channel_connected(self):
@@ -90,6 +93,7 @@
"refreshToken": self.refresh_token,
"clientId": self.client_id,
"hassUrl": self.hass_url,
+ "hassUUID": self.hass_uuid,
}
)
except Exception: # pylint: disable=broad-except
@@ -111,13 +115,24 @@
def get_status(self, callback_function=None):
"""Get status of Home Assistant Cast."""
self._send_connected_message(
- {"type": "get_status"}, callback_function=callback_function
+ {
+ "type": "get_status",
+ "hassUrl": self.hass_url,
+ "hassUUID": self.hass_uuid,
+ },
+ callback_function=callback_function,
)
def show_lovelace_view(self, view_path, url_path=None,
callback_function=None):
"""Show a Lovelace UI."""
self._send_connected_message(
- {"type": "show_lovelace_view", "viewPath": view_path, "urlPath":
url_path},
+ {
+ "type": "show_lovelace_view",
+ "hassUrl": self.hass_url,
+ "hassUUID": self.hass_uuid,
+ "viewPath": view_path,
+ "urlPath": url_path,
+ },
callback_function=callback_function,
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyChromecast-13.0.1/pychromecast/socket_client.py
new/PyChromecast-13.0.4/pychromecast/socket_client.py
--- old/PyChromecast-13.0.1/pychromecast/socket_client.py 2022-11-21
13:38:12.000000000 +0100
+++ new/PyChromecast-13.0.4/pychromecast/socket_client.py 2022-12-13
08:18:33.000000000 +0100
@@ -565,8 +565,15 @@
# poll the socket, as well as the socketpair to allow us to be
interrupted
rlist = [self.socket, self.socketpair[0]]
+ # Map file descriptors to socket objects because select.select does
not support fd > 1024
+ #
https://stackoverflow.com/questions/14250751/how-to-increase-filedescriptors-range-in-python-select
+ fd_to_socket = {rlist_item.fileno(): rlist_item for rlist_item in
rlist}
try:
- can_read, _, _ = select.select(rlist, [], [], timeout)
+ poll_obj = select.poll()
+ for poll_fd in rlist:
+ poll_obj.register(poll_fd, select.POLLIN)
+ poll_result = poll_obj.poll(timeout * 1000) # timeout in
milliseconds
+ can_read = [fd_to_socket[fd] for fd, _status in poll_result]
except (ValueError, OSError) as exc:
self.logger.error(
"[%s(%s):%s] Error in select call: %s",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/PyChromecast-13.0.1/setup.py
new/PyChromecast-13.0.4/setup.py
--- old/PyChromecast-13.0.1/setup.py 2022-11-21 13:38:12.000000000 +0100
+++ new/PyChromecast-13.0.4/setup.py 2022-12-13 08:18:33.000000000 +0100
@@ -5,7 +5,7 @@
setup(
name="PyChromecast",
- version="13.0.1",
+ version="13.0.4",
license="MIT",
url="https://github.com/balloob/pychromecast",
author="Paulus Schoutsen",