mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix retrieving PIN when no pin is set on mount in motionmount integration (#137230)
This commit is contained in:
parent
52d7cfbe32
commit
0034055ac8
@ -30,7 +30,7 @@ class MotionMountEntity(Entity):
|
||||
self.config_entry = config_entry
|
||||
|
||||
# We store the pin, as we might need it during reconnect
|
||||
self.pin = config_entry.data[CONF_PIN]
|
||||
self.pin = config_entry.data.get(CONF_PIN)
|
||||
|
||||
mac = format_mac(mm.mac.hex())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user