custom_components/nea_sg_weather/sensor.py
def extra_state_attributes(self) -> dict:
        """Return dict of additional properties to attach to sensors."""
        _forecasts = {
            state[0]: state[1]
            for state in self.coordinator.data.forecast24hr.region_forecast[
                self._region.lower()
            ]
        }
        return {
            "Updated at": self.coordinator.data.forecast24hr.timestamp,
            **_forecasts,
        }
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:
        _forecasts = {
            state[0]: state[1]
            for state in self.coordinator.data.forecast24hr.region_forecast[
                self._region.lower()
            ]
        }
        return {
            "Updated at": self.coordinator.data.forecast24hr.timestamp,
            **_forecasts,
        }
def extra_state_attributes ( self ) -> dict : _forecasts = { state [ 0 ] : state [ 1 ] for state in self . coordinator . data . forecast24hr . region_forecast [ self . _region . lower ( ) ] } return { "Updated at" : self . coordinator . data . forecast24hr . timestamp , ** _forecasts , }
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