-
-
Notifications
You must be signed in to change notification settings - Fork 37.5k
Bump letpot to 0.7.0 #169868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump letpot to 0.7.0 #169868
Changes from all commits
b4b5882
1617f6f
0357514
56b9277
9c4956d
474bda9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| from typing import Any, Concatenate | ||
|
|
||
| from letpot.exceptions import LetPotConnectionException, LetPotException | ||
| from letpot.models import LetPotDeviceStatus | ||
|
|
||
| from homeassistant.exceptions import HomeAssistantError | ||
| from homeassistant.helpers.device_registry import DeviceInfo | ||
|
|
@@ -22,12 +23,14 @@ class LetPotEntityDescription(EntityDescription): | |
| supported_fn: Callable[[LetPotDeviceCoordinator], bool] = lambda _: True | ||
|
|
||
|
|
||
| class LetPotEntity(CoordinatorEntity[LetPotDeviceCoordinator]): | ||
| class LetPotEntity[_DataT: LetPotDeviceStatus]( | ||
| CoordinatorEntity[LetPotDeviceCoordinator[_DataT]] | ||
| ): | ||
|
Comment on lines
+26
to
+28
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure how to address this. Changing the exception handler to use |
||
| """Defines a base LetPot entity.""" | ||
|
|
||
| _attr_has_entity_name = True | ||
|
|
||
| def __init__(self, coordinator: LetPotDeviceCoordinator) -> None: | ||
| def __init__(self, coordinator: LetPotDeviceCoordinator[_DataT]) -> None: | ||
| """Initialize a LetPot entity.""" | ||
| super().__init__(coordinator) | ||
| info = coordinator.device_client.device_info(coordinator.device.serial_number) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.