From 0abe90edad37a542d7ae6c4413c2dd8c4ef10efe Mon Sep 17 00:00:00 2001 From: Daniel Sack Date: Sat, 3 Apr 2021 23:08:00 +0200 Subject: [PATCH] Update __init__.py 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 6df738037bfe5d..46f3ac6caf2043 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)