Add additional garage door code to Advantage Air (#139687)

add Garage door
This commit is contained in:
Brett Adams 2025-03-03 20:45:04 +10:00 committed by GitHub
parent 572534b306
commit 5472345f45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ async def async_setup_entry(
entities.append( entities.append(
AdvantageAirThingCover(instance, thing, CoverDeviceClass.BLIND) AdvantageAirThingCover(instance, thing, CoverDeviceClass.BLIND)
) )
elif thing["channelDipState"] == 3: # 3 = "Garage door" elif thing["channelDipState"] in [3, 10]: # 3 & 10 = "Garage door"
entities.append( entities.append(
AdvantageAirThingCover(instance, thing, CoverDeviceClass.GARAGE) AdvantageAirThingCover(instance, thing, CoverDeviceClass.GARAGE)
) )