diff --git a/homeassistant/components/tado/__init__.py b/homeassistant/components/tado/__init__.py index d1994075f12..74768ee01fa 100644 --- a/homeassistant/components/tado/__init__.py +++ b/homeassistant/components/tado/__init__.py @@ -8,7 +8,13 @@ import PyTado.exceptions from PyTado.interface import Tado from homeassistant.config_entries import ConfigEntry -from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform +from homeassistant.const import ( + APPLICATION_NAME, + CONF_PASSWORD, + CONF_USERNAME, + Platform, + __version__ as HA_VERSION, +) from homeassistant.core import HomeAssistant, callback from homeassistant.exceptions import ( ConfigEntryAuthFailed, @@ -74,7 +80,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: TadoConfigEntry) -> bool def create_tado_instance() -> tuple[Tado, str]: """Create a Tado instance, this time with a previously obtained refresh token.""" - tado = Tado(saved_refresh_token=entry.data[CONF_REFRESH_TOKEN]) + tado = Tado( + saved_refresh_token=entry.data[CONF_REFRESH_TOKEN], + user_agent=f"{APPLICATION_NAME}/{HA_VERSION}", + ) return tado, tado.device_activation_status() try: diff --git a/homeassistant/components/tado/manifest.json b/homeassistant/components/tado/manifest.json index b252a396689..8350f300c03 100644 --- a/homeassistant/components/tado/manifest.json +++ b/homeassistant/components/tado/manifest.json @@ -14,5 +14,5 @@ }, "iot_class": "cloud_polling", "loggers": ["PyTado"], - "requirements": ["python-tado==0.18.14"] + "requirements": ["python-tado==0.18.15"] } diff --git a/requirements_all.txt b/requirements_all.txt index 4e2ca9a2713..3d7865d048a 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2507,7 +2507,7 @@ python-snoo==0.6.6 python-songpal==0.16.2 # homeassistant.components.tado -python-tado==0.18.14 +python-tado==0.18.15 # homeassistant.components.technove python-technove==2.0.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index da2ef7e146e..92f9b3e03ce 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -2047,7 +2047,7 @@ python-snoo==0.6.6 python-songpal==0.16.2 # homeassistant.components.tado -python-tado==0.18.14 +python-tado==0.18.15 # homeassistant.components.technove python-technove==2.0.0