Skip to content

Commit 74fcf0a

Browse files
committed
Merge pull request from thomas2403/master
fix deprecation warning for entity service schemas kotborealis#16
2 parents 5b153e3 + 0d98793 commit 74fcf0a

File tree

1 file changed

+3
-3
lines changed
  • custom_components/cover_time_based_synced

1 file changed

+3
-3
lines changed

custom_components/cover_time_based_synced/cover.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
}
7070
)
7171

72-
POSITION_SCHEMA = vol.Schema(
72+
POSITION_SCHEMA = cv.make_entity_service_schema(
7373
{
7474
vol.Required(ATTR_ENTITY_ID): cv.entity_ids,
7575
vol.Required(ATTR_POSITION): cv.positive_int,
@@ -79,7 +79,7 @@
7979
)
8080

8181

82-
ACTION_SCHEMA = vol.Schema(
82+
ACTION_SCHEMA = cv.make_entity_service_schema(
8383
{
8484
vol.Required(ATTR_ENTITY_ID): cv.entity_ids,
8585
vol.Required(ATTR_ACTION): cv.string
@@ -448,4 +448,4 @@ async def _async_handle_command(self, command, *args):
448448
# Update state of entity
449449
self.async_write_ha_state()
450450

451-
# END
451+
# END

0 commit comments

Comments
 (0)