Fix mysensors metric/non-metric gateway (#58476)

This commit is contained in:
Martin Hjelmare 2021-10-26 18:47:10 +02:00 committed by GitHub
parent 777589cdcc
commit 8b021ea06b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,6 +232,8 @@ async def _get_gateway(
protocol_version=version,
)
gateway.event_callback = event_callback
gateway.metric = hass.config.units.is_metric
if persistence:
await gateway.start_persistence()