forked from home-assistant/core
Fix mysensors metric/non-metric gateway (#58476)
This commit is contained in:
@@ -232,6 +232,8 @@ async def _get_gateway(
|
|||||||
protocol_version=version,
|
protocol_version=version,
|
||||||
)
|
)
|
||||||
gateway.event_callback = event_callback
|
gateway.event_callback = event_callback
|
||||||
|
gateway.metric = hass.config.units.is_metric
|
||||||
|
|
||||||
if persistence:
|
if persistence:
|
||||||
await gateway.start_persistence()
|
await gateway.start_persistence()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user