Skip to content

Commit

Permalink
Tmp. remove mypy ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
CoMPaTech committed May 19, 2023
1 parent 071b9fd commit 5357d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/plugwise/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def pw_get_value(self, obj: T, ret: float | int = 0) -> float | int:

def pw_get_value(self, obj: T, ret: Any = None) -> Any:
"""Return value from Plugwise device."""
if result := obj[self.pw_lookup].get(self.pw_key): # type: ignore [literal-required]
if result := obj[self.pw_lookup].get(self.pw_key):
return result

Check warning on line 32 in homeassistant/components/plugwise/models.py

View check run for this annotation

Codecov / codecov/patch

homeassistant/components/plugwise/models.py#L32

Added line #L32 was not covered by tests
if result := obj[self.pw_lookup].get(self.key): # type: ignore [literal-required]
if result := obj[self.pw_lookup].get(self.key):
return result
return ret

0 comments on commit 5357d9d

Please sign in to comment.