Skip to content

New HA change is causing a warning in the logs #34

@bschatzow

Description

@bschatzow

New log error

This error originated from a custom integration.

Logger: py.warnings
Source: custom_components/noaa_tides/sensor.py:226
integration: NOAA Tides (documentation)
First occurred: 3:20:39 PM (34 occurrences)
Last logged: 6:38:43 PM

/config/custom_components/noaa_tides/sensor.py:226: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]` self.attr["air_temperature"] = self.data[1].air_temp[0]
This error originated from a custom integration.

Logger: py.warnings
Source: custom_components/noaa_tides/sensor.py:223
integration: NOAA Tides (documentation)
First occurred: 3:20:39 PM (34 occurrences)
Last logged: 6:38:43 PM

/config/custom_components/noaa_tides/sensor.py:223: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]` self.attr["temperature"] = self.data[0].water_temp[0]

This error originated from a custom integration.

Logger: py.warnings
Source: custom_components/noaa_tides/sensor.py:238
integration: NOAA Tides (documentation)
First occurred: 3:20:39 PM (34 occurrences)
Last logged: 6:38:43 PM

/config/custom_components/noaa_tides/sensor.py:238: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]` return self.data[0].water_temp[0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions