From c732749640e5952cfaebd21a5795748f830d78db Mon Sep 17 00:00:00 2001 From: Daniel Sack Date: Wed, 7 Apr 2021 15:51:35 +0200 Subject: [PATCH] Update __init__.py (#48659) This change solves that HMIP-RCV-1 is not found when used in a service call to invoke a virtual key (case-sensitivity problem). - https://community.home-assistant.io/t/homematic-hmip-rcv-50-not-working-with-virtual-key-any-more/249000 - https://github.com/danielperna84/pyhomematic/issues/368 --- homeassistant/components/homematic/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/homematic/__init__.py b/homeassistant/components/homematic/__init__.py index 6df738037bf..46f3ac6caf2 100644 --- a/homeassistant/components/homematic/__init__.py +++ b/homeassistant/components/homematic/__init__.py @@ -611,6 +611,8 @@ def _device_from_servicecall(hass, service): interface = service.data.get(ATTR_INTERFACE) if address == "BIDCOS-RF": address = "BidCoS-RF" + if address == "HMIP-RCV-1": + address = "HmIP-RCV-1" if interface: return hass.data[DATA_HOMEMATIC].devices[interface].get(address)