Skip to content

Commit

Permalink
Fix binary sensor schema from upstream change
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed May 11, 2023
1 parent 2f9ea17 commit e922524
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/roode/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import esphome.config_validation as cv
from esphome.components.binary_sensor import (
BINARY_SENSOR_SCHEMA,
device_class,
validate_device_class,
new_binary_sensor,
)
from esphome.const import (
Expand All @@ -26,7 +26,7 @@

OCCUPANCY_SCHEMA = BINARY_SENSOR_SCHEMA.extend(
{
cv.Optional(CONF_DEVICE_CLASS, default=DEVICE_CLASS_OCCUPANCY): device_class,
cv.Optional(CONF_DEVICE_CLASS, default=DEVICE_CLASS_OCCUPANCY): validate_device_class,
}
)

Expand Down Expand Up @@ -60,7 +60,7 @@ async def to_code(config: Dict):
await to_code_zone(CONF_EXIT_ZONE, config, roode)


async def to_code_zone(name: str, config: Dict, roode: cg.Pvariable):
async def to_code_zone(name: str, config: Dict, roode: cg.MockObj):
zone_config = config[CONF_ZONES][name]
zone_var = cg.MockObj(f"{roode}->{name}", "->")
if CONF_OCCUPANCY in zone_config:
Expand Down

0 comments on commit e922524

Please sign in to comment.