Skip to content

Commit

Permalink
Remove Typed dict
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ committed Sep 13, 2024
1 parent fcc6549 commit 89886b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions hahomematic/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,16 +613,3 @@ class DeviceDescription(TypedDict, total=False):
INTERFACE: str | None
# ROAMING: int | None
RX_MODE: int


class DeviceInfo(TypedDict, total=False):
"""Entity device information for device registry."""

central_name: str
device_address: str
device_type: str
firmware: str
identifier: str
manufacturer: str
name: str
room: str
2 changes: 1 addition & 1 deletion hahomematic/platforms/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def ignore_for_custom_entity(self) -> bool:
def info(self) -> dict[str, Any]:
"""Return the device info."""
device_info = self.payload_info
device_info["central_name"] = self._central.payload_info
device_info["central"] = self._central.payload_info
return device_info

@property
Expand Down

0 comments on commit 89886b6

Please sign in to comment.