mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 23:57:06 +00:00
Fix retrieving PIN when no pin is set on mount in motionmount integration (#137230)
This commit is contained in:
parent
88e5d1c18f
commit
bb9740991e
@ -28,7 +28,7 @@ class MotionMountEntity(Entity):
|
|||||||
self.config_entry = config_entry
|
self.config_entry = config_entry
|
||||||
|
|
||||||
# We store the pin, as we might need it during reconnect
|
# 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())
|
mac = format_mac(mm.mac.hex())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user