Skip to content

Commit 00e2a17

Browse files
edenhausfrenck
authored andcommitted
Revert "Deprecate hddtemp" (home-assistant#148482)
1 parent b6d316c commit 00e2a17

File tree

3 files changed

+3
-40
lines changed

3 files changed

+3
-40
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
"""The hddtemp component."""
2-
3-
DOMAIN = "hddtemp"

homeassistant/components/hddtemp/sensor.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,11 @@
2222
CONF_PORT,
2323
UnitOfTemperature,
2424
)
25-
from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant
25+
from homeassistant.core import HomeAssistant
2626
from homeassistant.helpers import config_validation as cv
2727
from homeassistant.helpers.entity_platform import AddEntitiesCallback
28-
from homeassistant.helpers.issue_registry import IssueSeverity, create_issue
2928
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
3029

31-
from . import DOMAIN
32-
3330
_LOGGER = logging.getLogger(__name__)
3431

3532
ATTR_DEVICE = "device"
@@ -59,21 +56,6 @@ def setup_platform(
5956
discovery_info: DiscoveryInfoType | None = None,
6057
) -> None:
6158
"""Set up the HDDTemp sensor."""
62-
create_issue(
63-
hass,
64-
HOMEASSISTANT_DOMAIN,
65-
f"deprecated_system_packages_yaml_integration_{DOMAIN}",
66-
breaks_in_ha_version="2025.12.0",
67-
is_fixable=False,
68-
issue_domain=DOMAIN,
69-
severity=IssueSeverity.WARNING,
70-
translation_key="deprecated_system_packages_yaml_integration",
71-
translation_placeholders={
72-
"domain": DOMAIN,
73-
"integration_title": "hddtemp",
74-
},
75-
)
76-
7759
name = config.get(CONF_NAME)
7860
host = config.get(CONF_HOST)
7961
port = config.get(CONF_PORT)

tests/components/hddtemp/test_sensor.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
"""The tests for the hddtemp platform."""
22

33
import socket
4-
from unittest.mock import Mock, patch
4+
from unittest.mock import patch
55

66
import pytest
77

8-
from homeassistant.components.hddtemp import DOMAIN
9-
from homeassistant.components.sensor import DOMAIN as PLATFORM_DOMAIN
108
from homeassistant.const import UnitOfTemperature
11-
from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant
12-
from homeassistant.helpers import issue_registry as ir
9+
from homeassistant.core import HomeAssistant
1310
from homeassistant.setup import async_setup_component
1411

1512
VALID_CONFIG_MINIMAL = {"sensor": {"platform": "hddtemp"}}
@@ -195,17 +192,3 @@ async def test_hddtemp_host_unreachable(hass: HomeAssistant, telnetmock) -> None
195192
assert await async_setup_component(hass, "sensor", VALID_CONFIG_HOST_UNREACHABLE)
196193
await hass.async_block_till_done()
197194
assert len(hass.states.async_all()) == 0
198-
199-
200-
@patch.dict("sys.modules", gsp=Mock())
201-
async def test_repair_issue_is_created(
202-
hass: HomeAssistant,
203-
issue_registry: ir.IssueRegistry,
204-
) -> None:
205-
"""Test repair issue is created."""
206-
assert await async_setup_component(hass, PLATFORM_DOMAIN, VALID_CONFIG_MINIMAL)
207-
await hass.async_block_till_done()
208-
assert (
209-
HOMEASSISTANT_DOMAIN,
210-
f"deprecated_system_packages_yaml_integration_{DOMAIN}",
211-
) in issue_registry.issues

0 commit comments

Comments
 (0)