Skip to content

Commit

Permalink
commit latest
Browse files Browse the repository at this point in the history
  • Loading branch information
lymanepp committed Nov 15, 2024
1 parent 9c03531 commit 3e2c495
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion custom_components/calibration/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def async_setup_platform( # pylint: disable=too-many-locals
if not (attribute := conf.get(CONF_ATTRIBUTE)):
units = units or get_unit_of_measurement(hass, source)
device_class = device_class or get_device_class(hass, source)
state_class = get_capability(hass, source, ATTR_STATE_CLASS)
state_class = state_class or get_capability(hass, source, ATTR_STATE_CLASS)

if conf.get(CONF_HIDE_SOURCE) and source_entity and not source_entity.hidden:
ent_reg.async_update_entity(source, hidden_by=RegistryEntryHider.INTEGRATION)
Expand Down
10 changes: 5 additions & 5 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ black==24.3.0
homeassistant-stubs==2024.4.0
isort==5.12
mypy==1.5.1
numpy==1.26.0
pylint==3.1.0
pytest==8.1.1
numpy==1.26.4
pylint==3.3.1
pytest==8.3.3
pytest-aiohttp==1.0.5
pytest-asyncio==0.23.6
pytest-asyncio==0.24.0
pytest-cov==5.0.0
# https://github.com/MatthewFlamm/pytest-homeassistant-custom-component/releases
pytest-homeassistant-custom-component>=0.13.111
pytest-homeassistant-custom-component>=0.13.181
voluptuous-stubs==0.1.1
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
homeassistant==2024.4.0
numpy==1.26.0
homeassistant==2024.11.0
numpy==1.26.4

0 comments on commit 3e2c495

Please sign in to comment.