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.forecast2hr.timestamp,
            "latitude": self.coordinator.data.forecast2hr.area_forecast[self._area][
                "location"
            ]["latitude"],
            "longitude": self.coordinator.data.forecast2hr.area_forecast[self._area][
                "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.forecast2hr.timestamp,
            "latitude": self.coordinator.data.forecast2hr.area_forecast[self._area][
                "location"
            ]["latitude"],
            "longitude": self.coordinator.data.forecast2hr.area_forecast[self._area][
                "location"
            ]["longitude"],
        }
def extra_state_attributes ( self ) -> dict : return { "Updated at" : self . coordinator . data . forecast2hr . timestamp , "latitude" : self . coordinator . data . forecast2hr . area_forecast [ self . _area ] [ "location" ] [ "latitude" ] , "longitude" : self . coordinator . data . forecast2hr . area_forecast [ self . _area ] [ "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