From e5b6a58fab9b0d0feee81a4de807e20fca6132d9 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 31 Jan 2022 18:17:35 +0100 Subject: [PATCH] Update tailscale to 0.2.0 (#65318) --- homeassistant/components/tailscale/binary_sensor.py | 6 ++---- homeassistant/components/tailscale/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/tailscale/binary_sensor.py b/homeassistant/components/tailscale/binary_sensor.py index fff4cfbf908..2f97d307b15 100644 --- a/homeassistant/components/tailscale/binary_sensor.py +++ b/homeassistant/components/tailscale/binary_sensor.py @@ -111,8 +111,6 @@ class TailscaleBinarySensorEntity(TailscaleEntity, BinarySensorEntity): entity_description: TailscaleBinarySensorEntityDescription @property - def is_on(self) -> bool: + def is_on(self) -> bool | None: """Return the state of the sensor.""" - return bool( - self.entity_description.is_on_fn(self.coordinator.data[self.device_id]) - ) + return self.entity_description.is_on_fn(self.coordinator.data[self.device_id]) diff --git a/homeassistant/components/tailscale/manifest.json b/homeassistant/components/tailscale/manifest.json index ac7cbe84459..3249705ce7c 100644 --- a/homeassistant/components/tailscale/manifest.json +++ b/homeassistant/components/tailscale/manifest.json @@ -3,7 +3,7 @@ "name": "Tailscale", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/tailscale", - "requirements": ["tailscale==0.1.6"], + "requirements": ["tailscale==0.2.0"], "codeowners": ["@frenck"], "quality_scale": "platinum", "iot_class": "cloud_polling" diff --git a/requirements_all.txt b/requirements_all.txt index c8b82662ceb..8bb86d47bb5 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2314,7 +2314,7 @@ synology-srm==0.2.0 systembridge==2.2.3 # homeassistant.components.tailscale -tailscale==0.1.6 +tailscale==0.2.0 # homeassistant.components.tank_utility tank_utility==1.4.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 5ce35d69980..c5dabcbf94d 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1423,7 +1423,7 @@ surepy==0.7.2 systembridge==2.2.3 # homeassistant.components.tailscale -tailscale==0.1.6 +tailscale==0.2.0 # homeassistant.components.tellduslive tellduslive==0.10.11