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

This commit is contained in:
RJPoelstra 2025-02-03 14:05:11 +01:00 committed by Franck Nijhof
parent 88e5d1c18f
commit bb9740991e
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -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())