From 635ed562eebe7919e6edfee3c22a70b4ce33e7d0 Mon Sep 17 00:00:00 2001 From: Ricardo Steijn <61013287+RicArch97@users.noreply.github.com> Date: Thu, 15 Sep 2022 18:05:55 +0200 Subject: [PATCH] crownstone-sse: bump to 2.0.4 (#78538) --- homeassistant/components/crownstone/const.py | 1 + homeassistant/components/crownstone/entry_manager.py | 2 ++ homeassistant/components/crownstone/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/crownstone/const.py b/homeassistant/components/crownstone/const.py index a362435b9ce..9b3624a4575 100644 --- a/homeassistant/components/crownstone/const.py +++ b/homeassistant/components/crownstone/const.py @@ -7,6 +7,7 @@ from homeassistant.const import Platform # Platforms DOMAIN: Final = "crownstone" +PROJECT_NAME: Final = "home-assistant-core" PLATFORMS: Final[list[Platform]] = [Platform.LIGHT] # Listeners diff --git a/homeassistant/components/crownstone/entry_manager.py b/homeassistant/components/crownstone/entry_manager.py index dcae7ef4705..2f74daa8629 100644 --- a/homeassistant/components/crownstone/entry_manager.py +++ b/homeassistant/components/crownstone/entry_manager.py @@ -27,6 +27,7 @@ from .const import ( CONF_USB_SPHERE, DOMAIN, PLATFORMS, + PROJECT_NAME, SSE_LISTENERS, UART_LISTENERS, ) @@ -84,6 +85,7 @@ class CrownstoneEntryManager: password=password, access_token=self.cloud.access_token, websession=aiohttp_client.async_create_clientsession(self.hass), + project_name=PROJECT_NAME, ) # Listen for events in the background, without task tracking asyncio.create_task(self.async_process_events(self.sse)) diff --git a/homeassistant/components/crownstone/manifest.json b/homeassistant/components/crownstone/manifest.json index cdc79e7f0b5..39abd998be7 100644 --- a/homeassistant/components/crownstone/manifest.json +++ b/homeassistant/components/crownstone/manifest.json @@ -5,7 +5,7 @@ "documentation": "https://www.home-assistant.io/integrations/crownstone", "requirements": [ "crownstone-cloud==1.4.9", - "crownstone-sse==2.0.3", + "crownstone-sse==2.0.4", "crownstone-uart==2.1.0", "pyserial==3.5" ], diff --git a/requirements_all.txt b/requirements_all.txt index 54e41610684..da7254a1dee 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -523,7 +523,7 @@ croniter==1.0.6 crownstone-cloud==1.4.9 # homeassistant.components.crownstone -crownstone-sse==2.0.3 +crownstone-sse==2.0.4 # homeassistant.components.crownstone crownstone-uart==2.1.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index fe38fd99219..7914be321ae 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -400,7 +400,7 @@ croniter==1.0.6 crownstone-cloud==1.4.9 # homeassistant.components.crownstone -crownstone-sse==2.0.3 +crownstone-sse==2.0.4 # homeassistant.components.crownstone crownstone-uart==2.1.0