Add Airsend 1-button mapping to HA ButtonEntity instead of SwitchEntity
This commit is contained in:
jujupointcom
2022-08-16 18:04:36 +02:00
parent 40e2dfac42
commit 138ffba2e1
3 changed files with 151 additions and 12 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ from homeassistant.const import (
)
DOMAIN = "airsend"
AS_TYPE = ['switch', 'cover']
AS_TYPE = ['switch', 'cover', 'button']
async def async_setup(hass : HomeAssistant, config : ConfigType):
"""Set up the AirSend component."""