Update typing (3) [k-t] (#63924)

This commit is contained in:
Marc Mueller 2022-01-11 21:26:55 +01:00 committed by GitHub
parent bcb93d95bb
commit fa7e787415
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 28 additions and 28 deletions

View file

@ -1,7 +1,7 @@
"""Support for MySensors lights."""
from __future__ import annotations
from typing import Any, Tuple, cast
from typing import Any, cast
from homeassistant.components import mysensors
from homeassistant.components.light import (
@ -195,7 +195,7 @@ class MySensorsLightRGB(MySensorsLight):
"""Update the controller with values from RGB child."""
value = self._values[self.value_type]
self._attr_rgb_color = cast(
Tuple[int, int, int], tuple(rgb_hex_to_rgb_list(value))
tuple[int, int, int], tuple(rgb_hex_to_rgb_list(value))
)
@ -234,5 +234,5 @@ class MySensorsLightRGBW(MySensorsLightRGB):
"""Update the controller with values from RGBW child."""
value = self._values[self.value_type]
self._attr_rgbw_color = cast(
Tuple[int, int, int, int], tuple(rgb_hex_to_rgb_list(value))
tuple[int, int, int, int], tuple(rgb_hex_to_rgb_list(value))
)