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:
Erik Montnemery 2021-08-11 21:17:47 +02:00 committed by GitHub
parent ae507aeed1
commit 2720ba2753
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
70 changed files with 195 additions and 183 deletions

View file

@ -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
)