Fix retrieving PIN when no pin is set on mount in motionmount integration (#137230)

This commit is contained in:
RJPoelstra
2025-02-04 12:10:47 +00:00
committed by Franck Nijhof
parent 88e5d1c18f
commit bb9740991e
@@ -28,7 +28,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())