Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #37 from rccoleman/dev
Browse files Browse the repository at this point in the history
Migrate away from deprecated DEVICE_CLASS_*
  • Loading branch information
rccoleman authored Jan 5, 2023
2 parents 9f4ff98 + 6a57c53 commit ca1fc7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/lamarzocco/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging

from homeassistant.components.binary_sensor import (
DEVICE_CLASS_PROBLEM,
BinarySensorDeviceClass,
BinarySensorEntity,
)

Expand Down Expand Up @@ -38,7 +38,7 @@
},
ENTITY_TYPE: TYPE_WATER_RESERVOIR_CONTACT,
ENTITY_ICON: "mdi:water-well",
ENTITY_CLASS: DEVICE_CLASS_PROBLEM,
ENTITY_CLASS: BinarySensorDeviceClass.PROBLEM,
}
}

Expand Down

0 comments on commit ca1fc7f

Please sign in to comment.