From 42691b88fb5499cd49b8936fac3da1ced05ec2ba Mon Sep 17 00:00:00 2001 From: Kellett Date: Fri, 3 Jan 2025 14:43:19 +0000 Subject: [PATCH] Actually make it change the device --- garmin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/garmin.py b/garmin.py index d0114f4..627ec07 100644 --- a/garmin.py +++ b/garmin.py @@ -223,7 +223,7 @@ def edit_fit( dt = datetime.fromtimestamp(message.time_created / 1000.0) # type: ignore _logger.info(f'Activity timestamp is "{dt.isoformat()}"') print_message(f"Record: {i}", message) - if message.manufacturer == Manufacturer.DEVELOPMENT.value: + if message.manufacturer == Manufacturer.DEVELOPMENT.value or message.manufacturer == Manufacturer.ZWIFT.value: _logger.debug(" Modifying values") message.product = GarminProduct.EDGE_830.value message.manufacturer = Manufacturer.GARMIN.value @@ -237,7 +237,7 @@ def edit_fit( message.manufacturer == Manufacturer.DEVELOPMENT.value or message.manufacturer == 0 or message.manufacturer == Manufacturer.WAHOO_FITNESS.value - ): + ) or message.manufacturer == Manufacturer.ZWIFT.value: _logger.debug(" Modifying values") message.garmin_product = GarminProduct.EDGE_830.value message.product = GarminProduct.EDGE_830.value # type: ignore