Skip to content

Commit

Permalink
Update __init__.py (#48659)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DanielTheCoder authored Apr 7, 2021
1 parent fa84368 commit c732749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/homematic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c732749

Please sign in to comment.