Add switch platform to LaMetric (#79759)

* Add switch platform to LaMetric

* Little naming tweak
This commit is contained in:
Franck Nijhof 2022-10-07 15:03:58 +02:00 committed by GitHub
parent b450514fb3
commit 0b9d029350
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 192 additions and 1 deletions

View file

@ -7,7 +7,7 @@ from typing import Final
from homeassistant.const import Platform
DOMAIN: Final = "lametric"
PLATFORMS = [Platform.BUTTON, Platform.NUMBER]
PLATFORMS = [Platform.BUTTON, Platform.NUMBER, Platform.SWITCH]
LOGGER = logging.getLogger(__package__)
SCAN_INTERVAL = timedelta(seconds=30)