diff --git a/homeassistant/components/deconz/binary_sensor.py b/homeassistant/components/deconz/binary_sensor.py index d79e8708d4b..05c8a134074 100644 --- a/homeassistant/components/deconz/binary_sensor.py +++ b/homeassistant/components/deconz/binary_sensor.py @@ -15,8 +15,8 @@ from homeassistant.components.binary_sensor import ( DEVICE_CLASS_MOISTURE, DEVICE_CLASS_MOTION, DEVICE_CLASS_OPENING, - DEVICE_CLASS_PROBLEM, DEVICE_CLASS_SMOKE, + DEVICE_CLASS_TAMPER, DEVICE_CLASS_VIBRATION, DOMAIN, BinarySensorEntity, @@ -169,7 +169,7 @@ class DeconzTampering(DeconzDevice, BinarySensorEntity): TYPE = DOMAIN - _attr_device_class = DEVICE_CLASS_PROBLEM + _attr_device_class = DEVICE_CLASS_TAMPER def __init__(self, device, gateway): """Initialize deCONZ binary sensor.""" diff --git a/tests/components/deconz/test_binary_sensor.py b/tests/components/deconz/test_binary_sensor.py index 7f986ce4b81..96437800773 100644 --- a/tests/components/deconz/test_binary_sensor.py +++ b/tests/components/deconz/test_binary_sensor.py @@ -4,7 +4,7 @@ from unittest.mock import patch from homeassistant.components.binary_sensor import ( DEVICE_CLASS_MOTION, - DEVICE_CLASS_PROBLEM, + DEVICE_CLASS_TAMPER, DEVICE_CLASS_VIBRATION, ) from homeassistant.components.deconz.const import ( @@ -136,7 +136,7 @@ async def test_tampering_sensor(hass, aioclient_mock, mock_deconz_websocket): assert len(hass.states.async_all()) == 3 presence_tamper = hass.states.get("binary_sensor.presence_sensor_tampered") assert presence_tamper.state == STATE_OFF - assert presence_tamper.attributes[ATTR_DEVICE_CLASS] == DEVICE_CLASS_PROBLEM + assert presence_tamper.attributes[ATTR_DEVICE_CLASS] == DEVICE_CLASS_TAMPER event_changed_sensor = { "t": "event",