diff --git a/custom_components/gree/gree_protocol.py b/custom_components/gree/gree_protocol.py index a089235..0bedc19 100644 --- a/custom_components/gree/gree_protocol.py +++ b/custom_components/gree/gree_protocol.py @@ -106,7 +106,7 @@ async def test_connection(config): encryption_version = config[CONF_ENCRYPTION_VERSION] encryption_key = config[CONF_ENCRYPTION_KEY] - mac_addr = config.get(CONF_MAC).encode().replace(b":", b"").decode("utf-8").lower() + mac_addr = config.get(CONF_MAC).encode().replace(b":", b"").replace(b"-", b"").decode("utf-8").lower() if "@" in mac_addr: mac_addr = mac_addr.split("@", 1)[1]