Skip to content

Commit

Permalink
chore(deps): update homeassistant/home-assistant docker tag to v2024.…
Browse files Browse the repository at this point in the history
…7.0 (#901)

Co-authored-by: jnewland-renovate <195354+jnewland-renovate[bot]@users.noreply.github.com>
  • Loading branch information
jnewland-renovate[bot] and jnewland-renovate committed Jul 3, 2024
1 parent e447356 commit 4f201de
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM homeassistant/home-assistant:2024.6.4@sha256:17d159928122e6f374bd39b0e75904522bc7d7c2a64e88b248948734e4c4d444
FROM homeassistant/home-assistant:2024.7.0@sha256:4c2400f34d42c5fed9e2443a5a41db01316323b0564701f3336411bcd2ff9c88

ARG ENABLE_NONROOT_DOCKER="true"
ARG INSTALL_ZSH="true"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: |
openssl req -x509 -newkey rsa:1024 -subj '/CN=example.com' -nodes -keyout key.pem -out cert.pem
- name: Test config
uses: docker://homeassistant/home-assistant:2024.6.4@sha256:17d159928122e6f374bd39b0e75904522bc7d7c2a64e88b248948734e4c4d444
uses: docker://homeassistant/home-assistant:2024.7.0@sha256:4c2400f34d42c5fed9e2443a5a41db01316323b0564701f3336411bcd2ff9c88
with:
entrypoint: ./script/cibuild
script-deploy:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/plant/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"requirements": [
"async-timeout>=4.0.2"
],
"version": "2024.6.0"
"version": "2024.7.0-beta1"
}
6 changes: 3 additions & 3 deletions custom_components/plant/plant_meters.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
from homeassistant.const import (
ATTR_NAME,
ATTR_UNIT_OF_MEASUREMENT,
CONDUCTIVITY,
LIGHT_LUX,
PERCENTAGE,
STATE_UNAVAILABLE,
STATE_UNKNOWN,
UnitOfTime,
UnitOfConductivity,
UnitOfTemperature,
UnitOfTime,
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
Expand Down Expand Up @@ -204,7 +204,7 @@ def __init__(
self._external_sensor = config.data[FLOW_PLANT_INFO].get(
FLOW_SENSOR_CONDUCTIVITY
)
self._attr_native_unit_of_measurement = CONDUCTIVITY
self._attr_native_unit_of_measurement = UnitOfConductivity.MICROSIEMENS

super().__init__(hass, config, plantdevice)

Expand Down
4 changes: 2 additions & 2 deletions custom_components/plant/plant_thresholds.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ def __init__(
self._attr_unique_id = f"{config.entry_id}-min-temperature"
super().__init__(hass, config, plantdevice)
self._attr_native_unit_of_measurement = self._hass.config.units.temperature_unit
self._attr_native_max_value = 100
self._attr_native_min_value = 0
self._attr_native_max_value = 50
self._attr_native_min_value = -50
self._attr_native_step = 1

@property
Expand Down
7 changes: 4 additions & 3 deletions custom_components/plant/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
ATTR_ICON,
ATTR_NAME,
ATTR_UNIT_OF_MEASUREMENT,
CONDUCTIVITY,
LIGHT_LUX,
PERCENTAGE,
STATE_UNAVAILABLE,
STATE_UNKNOWN,
UnitOfTime,
UnitOfConductivity,
UnitOfTemperature,
UnitOfTime,
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
Expand Down Expand Up @@ -354,7 +354,7 @@ def __init__(
self._external_sensor = config.data[FLOW_PLANT_INFO].get(
FLOW_SENSOR_CONDUCTIVITY
)
self._attr_native_unit_of_measurement = CONDUCTIVITY
self._attr_native_unit_of_measurement = UnitOfConductivity.MICROSIEMENS

super().__init__(hass, config, plantdevice)

Expand Down Expand Up @@ -536,6 +536,7 @@ def __init__(
unique_id=f"{config.entry_id}-ppfd-integral",
unit_prefix=None,
unit_time=UnitOfTime.SECONDS,
max_sub_interval=None,
)
self._unit_of_measurement = UNIT_DLI
self._attr_icon = ICON_DLI
Expand Down

0 comments on commit 4f201de

Please sign in to comment.