custom_components/nea_sg_weather/sensor.py
def extra_state_attributes(self) -> dict:
        """Return dict of additional properties to attach to sensors."""
        return {
            "Updated at": self.coordinator.data.rain.timestamp,
            "Location name": self.coordinator.data.rain.data[self._rain_sensor_id][
                "name"
            ],
            "latitude": self.coordinator.data.rain.data[self._rain_sensor_id][
                "location"
            ]["latitude"],
            "longitude": self.coordinator.data.rain.data[self._rain_sensor_id][
                "location"
            ]["longitude"],
        }
Return dict of additional properties to attach to sensors.
Return dict of additional properties to attach to sensors.
Return dict of additional properties to attach to sensors .
def extra_state_attributes(self) -> dict:
        return {
            "Updated at": self.coordinator.data.rain.timestamp,
            "Location name": self.coordinator.data.rain.data[self._rain_sensor_id][
                "name"
            ],
            "latitude": self.coordinator.data.rain.data[self._rain_sensor_id][
                "location"
            ]["latitude"],
            "longitude": self.coordinator.data.rain.data[self._rain_sensor_id][
                "location"
            ]["longitude"],
        }
def extra_state_attributes ( self ) -> dict : return { "Updated at" : self . coordinator . data . rain . timestamp , "Location name" : self . coordinator . data . rain . data [ self . _rain_sensor_id ] [ "name" ] , "latitude" : self . coordinator . data . rain . data [ self . _rain_sensor_id ] [ "location" ] [ "latitude" ] , "longitude" : self . coordinator . data . rain . data [ self . _rain_sensor_id ] [ "location" ] [ "longitude" ] , }
Return dict of additional properties to attach to sensors.
Return dict of additional properties to attach to sensors .
"""Return dict of additional properties to attach to sensors."""
self