1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Correct vesync missing return type (#160580)

This commit is contained in:
cdnninja
2026-01-09 00:09:31 -07:00
committed by GitHub
parent 5e43708a40
commit 11dde08d79
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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