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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user