mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Fix implicit-return in plaato (#122902)
This commit is contained in:
parent
6a45124878
commit
dbdb148e12
@ -1,5 +1,7 @@
|
|||||||
"""PlaatoEntity class."""
|
"""PlaatoEntity class."""
|
||||||
|
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
from pyplaato.models.device import PlaatoDevice
|
from pyplaato.models.device import PlaatoDevice
|
||||||
|
|
||||||
from homeassistant.helpers import entity
|
from homeassistant.helpers import entity
|
||||||
@ -59,7 +61,7 @@ class PlaatoEntity(entity.Entity):
|
|||||||
return self._entry_data[SENSOR_DATA]
|
return self._entry_data[SENSOR_DATA]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def extra_state_attributes(self):
|
def extra_state_attributes(self) -> dict[str, Any] | None:
|
||||||
"""Return the state attributes of the monitored installation."""
|
"""Return the state attributes of the monitored installation."""
|
||||||
if self._attributes:
|
if self._attributes:
|
||||||
return {
|
return {
|
||||||
@ -68,6 +70,7 @@ class PlaatoEntity(entity.Entity):
|
|||||||
if plaato_key in self._attributes
|
if plaato_key in self._attributes
|
||||||
and self._attributes[plaato_key] is not None
|
and self._attributes[plaato_key] is not None
|
||||||
}
|
}
|
||||||
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def available(self):
|
def available(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user