Add entity translations to IntelliFire (#95466)

This commit is contained in:
Joost Lekkerkerker 2023-07-22 16:31:36 +02:00 committed by GitHub
parent 11fd43b1fc
commit 9ca288858b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 131 additions and 31 deletions

View file

@ -45,7 +45,7 @@ class IntellifireFanEntityDescription(
INTELLIFIRE_FANS: tuple[IntellifireFanEntityDescription, ...] = (
IntellifireFanEntityDescription(
key="fan",
name="Fan",
translation_key="fan",
set_fn=lambda control_api, speed: control_api.set_fan_speed(speed=speed),
value_fn=lambda data: data.fanspeed,
speed_range=(1, 4),