Remove illuminance sensor for Xiaomi EU gateway (#41580)

Xiaomi EU gateway don't support the `XiaomiGatewayIlluminanceSensor`.
This commit is contained in:
javicalle 2020-10-10 14:43:06 +02:00 committed by GitHub
parent c31d9bfd3f
commit 73f52c829a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@ from miio.gateway import (
GATEWAY_MODEL_AC_V1, GATEWAY_MODEL_AC_V1,
GATEWAY_MODEL_AC_V2, GATEWAY_MODEL_AC_V2,
GATEWAY_MODEL_AC_V3, GATEWAY_MODEL_AC_V3,
GATEWAY_MODEL_EU,
DeviceType, DeviceType,
GatewayException, GatewayException,
) )
@ -93,6 +94,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
GATEWAY_MODEL_AC_V1, GATEWAY_MODEL_AC_V1,
GATEWAY_MODEL_AC_V2, GATEWAY_MODEL_AC_V2,
GATEWAY_MODEL_AC_V3, GATEWAY_MODEL_AC_V3,
GATEWAY_MODEL_EU,
]: ]:
entities.append( entities.append(
XiaomiGatewayIlluminanceSensor( XiaomiGatewayIlluminanceSensor(