diff --git a/homeassistant/components/vesync/common.py b/homeassistant/components/vesync/common.py index 10d718ef50d..5a050e042f0 100644 --- a/homeassistant/components/vesync/common.py +++ b/homeassistant/components/vesync/common.py @@ -13,7 +13,7 @@ from pyvesync.devices.vesyncswitch import VeSyncWallSwitch _LOGGER = logging.getLogger(__name__) -def rgetattr(obj: object, attr: str): +def rgetattr(obj: object, attr: str) -> object | str | None: """Return a string in the form word.1.2.3 and return the item as 3. Note that this last value could be in a dict as well.""" _this_func = rgetattr sp = attr.split(".", 1) diff --git a/homeassistant/components/vesync/entity.py b/homeassistant/components/vesync/entity.py index 8ace861eb3f..10868836ee3 100644 --- a/homeassistant/components/vesync/entity.py +++ b/homeassistant/components/vesync/entity.py @@ -30,7 +30,7 @@ class VeSyncBaseEntity(CoordinatorEntity[VeSyncDataCoordinator]): ) @property - def base_unique_id(self): + def base_unique_id(self) -> str: """Return the ID of this device.""" # The unique_id property may be overridden in subclasses, such as in # sensors. Maintaining base_unique_id allows us to group related