Skip to content

Commit

Permalink
Fix setting temperature offset
Browse files Browse the repository at this point in the history
Bump to 0.0.6
  • Loading branch information
tobi1449 committed Jan 17, 2024
1 parent 37d1bda commit 9faed65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion custom_components/scd4x_gpio_integration/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"sensirion-i2c-driver",
"async-timeout"
],
"version": "0.0.5"
"version": "0.0.6"
}
2 changes: 1 addition & 1 deletion custom_components/scd4x_gpio_integration/scd4x_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async def get_sensor_altitude(scd4x: Scd4xI2cDevice) -> int:

async def set_temperature_offset(scd4x: Scd4xI2cDevice, temperature_offset):
await run_async(
functools.partial(Scd4xI2cDevice.set_temperature_offset, self=scd4x, temperature_offset=temperature_offset))
functools.partial(Scd4xI2cDevice.set_temperature_offset, self=scd4x, t_offset=temperature_offset))


async def get_temperature_offset(scd4x: Scd4xI2cDevice) -> float:
Expand Down
6 changes: 2 additions & 4 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"name": "SCD4x GPIO Integration",
"filename": "scd4x_gpio_integration.zip",
"homeassistant": "2023.11.0",
"render_readme": true,
"zip_release": true
"homeassistant": "2024.1.0",
"render_readme": true
}

0 comments on commit 9faed65

Please sign in to comment.