Move temperature conversions to sensor base class (4/8) (#54472)
* Move temperature conversions to entity base class (4/8) * Fix litterrobot sensor * Fix tests
This commit is contained in:
parent
ae507aeed1
commit
2720ba2753
70 changed files with 195 additions and 183 deletions
|
@ -33,6 +33,6 @@ class IPSensor(SensorEntity):
|
|||
|
||||
async def async_update(self) -> None:
|
||||
"""Fetch new state data for the sensor."""
|
||||
self._attr_state = await async_get_source_ip(
|
||||
self._attr_native_value = await async_get_source_ip(
|
||||
self.hass, target_ip=PUBLIC_TARGET_IP
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue