Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHR committed Feb 7, 2024
1 parent 72e6c8e commit facce42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.0.8](https://github.com/IgnacioHR/de-dietrich-c230-ha/compare/v1.0.4...v1.0.8) (2022-12-08)

### [1.0.4](https://github.com/IgnacioHR/de-dietrich-c230-ha/compare/v1.0.2...v1.0.4) (2022-12-08)

### [1.0.2](https://github.com/IgnacioHR/de-dietrich-c230-ha/compare/v1.0.1...v1.0.2) (2022-10-10)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/diematic_3_c230_eco/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"diematic_client==1.9"
],
"ssdp": [],
"version": "1.0.7",
"version": "1.0.8",
"zeroconf": []
}
4 changes: 2 additions & 2 deletions custom_components/diematic_3_c230_eco/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

from homeassistant.components.sensor import SensorEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import DEVICE_CLASS_TEMPERATURE
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.components.sensor import SensorDeviceClass

from .const import DOMAIN
from .diematic_bolier import DiematicBoiler
Expand Down Expand Up @@ -115,7 +115,7 @@ def __init__(
name: str,
) -> None:
self.variable = variable
self._attr_device_class = DEVICE_CLASS_TEMPERATURE
self._attr_device_class = SensorDeviceClass.TEMPERATURE
super().__init__(
diematic_boiler=diematic_boiler,
entry_id=entry_id,
Expand Down

0 comments on commit facce42

Please sign in to comment.