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 GitHub
parent 52d7cfbe32
commit 0034055ac8

View File

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