Skip to content

Commit

Permalink
Merge pull request #122 from gorbunovav/120-update-text-sensor-defini…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
Lyr3x committed Mar 20, 2022
2 parents 4ba3a42 + 3b05078 commit c16734a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/roode/text_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
CONFIG_SCHEMA = cv.Schema(
{
cv.GenerateID(CONF_ROODE_ID): cv.use_id(Roode),
cv.Optional(VERSION): text_sensor.TEXT_SENSOR_SCHEMA.extend(
cv.Optional(VERSION): text_sensor.text_sensor_schema().extend(
{
cv.Optional(CONF_ICON, default="mdi:git"): text_sensor.icon,
cv.Optional(CONF_ICON, default="mdi:git"): cv.icon,
cv.GenerateID(): cv.declare_id(text_sensor.TextSensor),
cv.Optional(
CONF_ENTITY_CATEGORY, default=ENTITY_CATEGORY_DIAGNOSTIC
): cv.entity_category,
}
),
cv.Optional(ENTRY_EXIT_EVENT): text_sensor.TEXT_SENSOR_SCHEMA.extend(
cv.Optional(ENTRY_EXIT_EVENT): text_sensor.text_sensor_schema().extend(
{
cv.Optional(CONF_ICON, default="mdi:sign-direction"): text_sensor.icon,
cv.Optional(CONF_ICON, default="mdi:sign-direction"): cv.icon,
cv.GenerateID(): cv.declare_id(text_sensor.TextSensor),
cv.Optional(
CONF_ENTITY_CATEGORY, default=ENTITY_CATEGORY_DIAGNOSTIC
Expand Down

0 comments on commit c16734a

Please sign in to comment.