Bump pylitejet to 0.4.6 (now with async!) (#85493)

This commit is contained in:
Jon Caruana 2023-01-17 07:53:16 -08:00 committed by GitHub
parent 25392655e7
commit 65c4e63e30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 78 additions and 63 deletions

View file

@ -3,6 +3,7 @@ from __future__ import annotations
from collections.abc import Callable
from pylitejet import LiteJet
import voluptuous as vol
from homeassistant.const import CONF_PLATFORM
@ -104,7 +105,7 @@ async def async_attach_trigger(
):
hass.add_job(call_action)
system = hass.data[DOMAIN]
system: LiteJet = hass.data[DOMAIN]
system.on_switch_pressed(number, pressed)
system.on_switch_released(number, released)