Compare commits

..

No commits in common. "a7922690c435c240e37cac3d11400cd7c3c38510" and "c3037bae39dcabaf31defb6384d7b894ce4b91c0" have entirely different histories.

18 changed files with 51 additions and 2036 deletions

View File

@ -73,14 +73,14 @@ async def _async_set_position(
Returns True if the position was set, False if there is no Returns True if the position was set, False if there is no
supported method for setting the position. supported method for setting the position.
""" """
if CoverEntityFeature.SET_POSITION in features: if target_position == FULL_CLOSE and CoverEntityFeature.CLOSE in features:
await service_call(
SERVICE_SET_COVER_POSITION, service_data | {ATTR_POSITION: target_position}
)
elif target_position == FULL_CLOSE and CoverEntityFeature.CLOSE in features:
await service_call(SERVICE_CLOSE_COVER, service_data) await service_call(SERVICE_CLOSE_COVER, service_data)
elif target_position == FULL_OPEN and CoverEntityFeature.OPEN in features: elif target_position == FULL_OPEN and CoverEntityFeature.OPEN in features:
await service_call(SERVICE_OPEN_COVER, service_data) await service_call(SERVICE_OPEN_COVER, service_data)
elif CoverEntityFeature.SET_POSITION in features:
await service_call(
SERVICE_SET_COVER_POSITION, service_data | {ATTR_POSITION: target_position}
)
else: else:
# Requested a position but the cover doesn't support it # Requested a position but the cover doesn't support it
return False return False
@ -98,17 +98,15 @@ async def _async_set_tilt_position(
Returns True if the tilt position was set, False if there is no Returns True if the tilt position was set, False if there is no
supported method for setting the tilt position. supported method for setting the tilt position.
""" """
if CoverEntityFeature.SET_TILT_POSITION in features: if target_tilt_position == FULL_CLOSE and CoverEntityFeature.CLOSE_TILT in features:
await service_call(SERVICE_CLOSE_COVER_TILT, service_data)
elif target_tilt_position == FULL_OPEN and CoverEntityFeature.OPEN_TILT in features:
await service_call(SERVICE_OPEN_COVER_TILT, service_data)
elif CoverEntityFeature.SET_TILT_POSITION in features:
await service_call( await service_call(
SERVICE_SET_COVER_TILT_POSITION, SERVICE_SET_COVER_TILT_POSITION,
service_data | {ATTR_TILT_POSITION: target_tilt_position}, service_data | {ATTR_TILT_POSITION: target_tilt_position},
) )
elif (
target_tilt_position == FULL_CLOSE and CoverEntityFeature.CLOSE_TILT in features
):
await service_call(SERVICE_CLOSE_COVER_TILT, service_data)
elif target_tilt_position == FULL_OPEN and CoverEntityFeature.OPEN_TILT in features:
await service_call(SERVICE_OPEN_COVER_TILT, service_data)
else: else:
# Requested a tilt position but the cover doesn't support it # Requested a tilt position but the cover doesn't support it
return False return False
@ -185,12 +183,12 @@ async def _async_reproduce_state(
current_attrs = cur_state.attributes current_attrs = cur_state.attributes
target_attrs = state.attributes target_attrs = state.attributes
current_position: int | None = current_attrs.get(ATTR_CURRENT_POSITION) current_position = current_attrs.get(ATTR_CURRENT_POSITION)
target_position: int | None = target_attrs.get(ATTR_CURRENT_POSITION) target_position = target_attrs.get(ATTR_CURRENT_POSITION)
position_matches = current_position == target_position position_matches = current_position == target_position
current_tilt_position: int | None = current_attrs.get(ATTR_CURRENT_TILT_POSITION) current_tilt_position = current_attrs.get(ATTR_CURRENT_TILT_POSITION)
target_tilt_position: int | None = target_attrs.get(ATTR_CURRENT_TILT_POSITION) target_tilt_position = target_attrs.get(ATTR_CURRENT_TILT_POSITION)
tilt_position_matches = current_tilt_position == target_tilt_position tilt_position_matches = current_tilt_position == target_tilt_position
state_matches = cur_state.state == target_state state_matches = cur_state.state == target_state
@ -216,12 +214,20 @@ async def _async_reproduce_state(
) )
service_data = {ATTR_ENTITY_ID: entity_id} service_data = {ATTR_ENTITY_ID: entity_id}
set_position = target_position is not None and await _async_set_position( set_position = (
not position_matches
and target_position is not None
and await _async_set_position(
service_call, service_data, features, target_position service_call, service_data, features, target_position
) )
set_tilt = target_tilt_position is not None and await _async_set_tilt_position( )
set_tilt = (
not tilt_position_matches
and target_tilt_position is not None
and await _async_set_tilt_position(
service_call, service_data, features, target_tilt_position service_call, service_data, features, target_tilt_position
) )
)
if target_state in CLOSING_STATES: if target_state in CLOSING_STATES:
await _async_close_cover( await _async_close_cover(

View File

@ -12,7 +12,7 @@ from homeassistant.components.climate import (
HVACAction, HVACAction,
HVACMode, HVACMode,
) )
from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature from homeassistant.const import ATTR_TEMPERATURE, EntityCategory, UnitOfTemperature
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant
from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
@ -43,6 +43,7 @@ async def async_setup_entry(
class InComfortClimate(IncomfortEntity, ClimateEntity): class InComfortClimate(IncomfortEntity, ClimateEntity):
"""Representation of an InComfort/InTouch climate device.""" """Representation of an InComfort/InTouch climate device."""
_attr_entity_category = EntityCategory.CONFIG
_attr_min_temp = 5.0 _attr_min_temp = 5.0
_attr_max_temp = 30.0 _attr_max_temp = 30.0
_attr_name = None _attr_name = None

View File

@ -49,7 +49,6 @@ BINARY_SENSOR_DESCRIPTIONS: list[OverkizBinarySensorDescription] = [
key=OverkizState.CORE_WATER_DETECTION, key=OverkizState.CORE_WATER_DETECTION,
name="Water", name="Water",
icon="mdi:water", icon="mdi:water",
device_class=BinarySensorDeviceClass.MOISTURE,
value_fn=lambda state: state == OverkizCommandParam.DETECTED, value_fn=lambda state: state == OverkizCommandParam.DETECTED,
), ),
# AirSensor/AirFlowSensor # AirSensor/AirFlowSensor

View File

@ -14,7 +14,7 @@ from homeassistant.components.number import (
NumberEntity, NumberEntity,
NumberEntityDescription, NumberEntityDescription,
) )
from homeassistant.const import EntityCategory, UnitOfTemperature, UnitOfTime from homeassistant.const import EntityCategory, UnitOfTemperature
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
@ -172,8 +172,6 @@ NUMBER_DESCRIPTIONS: list[OverkizNumberDescription] = [
native_max_value=7, native_max_value=7,
set_native_value=_async_set_native_value_boost_mode_duration, set_native_value=_async_set_native_value_boost_mode_duration,
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
device_class=NumberDeviceClass.DURATION,
native_unit_of_measurement=UnitOfTime.DAYS,
), ),
# DomesticHotWaterProduction - away mode in days (0 - 6) # DomesticHotWaterProduction - away mode in days (0 - 6)
OverkizNumberDescription( OverkizNumberDescription(
@ -184,8 +182,6 @@ NUMBER_DESCRIPTIONS: list[OverkizNumberDescription] = [
native_min_value=0, native_min_value=0,
native_max_value=6, native_max_value=6,
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
device_class=NumberDeviceClass.DURATION,
native_unit_of_measurement=UnitOfTime.DAYS,
), ),
] ]

View File

@ -23,7 +23,6 @@ from homeassistant.const import (
EntityCategory, EntityCategory,
UnitOfEnergy, UnitOfEnergy,
UnitOfPower, UnitOfPower,
UnitOfSpeed,
UnitOfTemperature, UnitOfTemperature,
UnitOfTime, UnitOfTime,
UnitOfVolume, UnitOfVolume,
@ -127,7 +126,6 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
name="Outlet engine", name="Outlet engine",
icon="mdi:fan-chevron-down", icon="mdi:fan-chevron-down",
native_unit_of_measurement=UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR, native_unit_of_measurement=UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR,
device_class=SensorDeviceClass.VOLUME_FLOW_RATE,
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
OverkizSensorDescription( OverkizSensorDescription(
@ -154,23 +152,14 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
OverkizSensorDescription( OverkizSensorDescription(
key=OverkizState.CORE_FOSSIL_ENERGY_CONSUMPTION, key=OverkizState.CORE_FOSSIL_ENERGY_CONSUMPTION,
name="Fossil energy consumption", name="Fossil energy consumption",
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL_INCREASING,
), ),
OverkizSensorDescription( OverkizSensorDescription(
key=OverkizState.CORE_GAS_CONSUMPTION, key=OverkizState.CORE_GAS_CONSUMPTION,
name="Gas consumption", name="Gas consumption",
native_unit_of_measurement=UnitOfVolume.CUBIC_METERS,
device_class=SensorDeviceClass.GAS,
state_class=SensorStateClass.TOTAL_INCREASING,
), ),
OverkizSensorDescription( OverkizSensorDescription(
key=OverkizState.CORE_THERMAL_ENERGY_CONSUMPTION, key=OverkizState.CORE_THERMAL_ENERGY_CONSUMPTION,
name="Thermal energy consumption", name="Thermal energy consumption",
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL_INCREASING,
), ),
# LightSensor/LuminanceSensor # LightSensor/LuminanceSensor
OverkizSensorDescription( OverkizSensorDescription(
@ -215,7 +204,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
# core:MeasuredValueType = core:ElectricalEnergyInWh # core:MeasuredValueType = core:ElectricalEnergyInWh
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.MEASUREMENT,
), ),
OverkizSensorDescription( OverkizSensorDescription(
key=OverkizState.CORE_CONSUMPTION_TARIFF2, key=OverkizState.CORE_CONSUMPTION_TARIFF2,
@ -224,7 +213,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
# core:MeasuredValueType = core:ElectricalEnergyInWh # core:MeasuredValueType = core:ElectricalEnergyInWh
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.MEASUREMENT,
), ),
OverkizSensorDescription( OverkizSensorDescription(
key=OverkizState.CORE_CONSUMPTION_TARIFF3, key=OverkizState.CORE_CONSUMPTION_TARIFF3,
@ -233,7 +222,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
# core:MeasuredValueType = core:ElectricalEnergyInWh # core:MeasuredValueType = core:ElectricalEnergyInWh
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.MEASUREMENT,
), ),
OverkizSensorDescription( OverkizSensorDescription(
key=OverkizState.CORE_CONSUMPTION_TARIFF4, key=OverkizState.CORE_CONSUMPTION_TARIFF4,
@ -242,7 +231,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
# core:MeasuredValueType = core:ElectricalEnergyInWh # core:MeasuredValueType = core:ElectricalEnergyInWh
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.MEASUREMENT,
), ),
OverkizSensorDescription( OverkizSensorDescription(
key=OverkizState.CORE_CONSUMPTION_TARIFF5, key=OverkizState.CORE_CONSUMPTION_TARIFF5,
@ -251,7 +240,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
# core:MeasuredValueType = core:ElectricalEnergyInWh # core:MeasuredValueType = core:ElectricalEnergyInWh
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.MEASUREMENT,
), ),
OverkizSensorDescription( OverkizSensorDescription(
key=OverkizState.CORE_CONSUMPTION_TARIFF6, key=OverkizState.CORE_CONSUMPTION_TARIFF6,
@ -260,7 +249,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
# core:MeasuredValueType = core:ElectricalEnergyInWh # core:MeasuredValueType = core:ElectricalEnergyInWh
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.MEASUREMENT,
), ),
OverkizSensorDescription( OverkizSensorDescription(
key=OverkizState.CORE_CONSUMPTION_TARIFF7, key=OverkizState.CORE_CONSUMPTION_TARIFF7,
@ -269,7 +258,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
# core:MeasuredValueType = core:ElectricalEnergyInWh # core:MeasuredValueType = core:ElectricalEnergyInWh
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.MEASUREMENT,
), ),
OverkizSensorDescription( OverkizSensorDescription(
key=OverkizState.CORE_CONSUMPTION_TARIFF8, key=OverkizState.CORE_CONSUMPTION_TARIFF8,
@ -278,7 +267,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
# core:MeasuredValueType = core:ElectricalEnergyInWh # core:MeasuredValueType = core:ElectricalEnergyInWh
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.MEASUREMENT,
), ),
OverkizSensorDescription( OverkizSensorDescription(
key=OverkizState.CORE_CONSUMPTION_TARIFF9, key=OverkizState.CORE_CONSUMPTION_TARIFF9,
@ -287,7 +276,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
# core:MeasuredValueType = core:ElectricalEnergyInWh # core:MeasuredValueType = core:ElectricalEnergyInWh
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.MEASUREMENT,
), ),
# HumiditySensor/RelativeHumiditySensor # HumiditySensor/RelativeHumiditySensor
OverkizSensorDescription( OverkizSensorDescription(
@ -353,8 +342,6 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
name="Sun energy", name="Sun energy",
native_value=lambda value: round(cast(float, value), 2), native_value=lambda value: round(cast(float, value), 2),
icon="mdi:solar-power", icon="mdi:solar-power",
device_class=SensorDeviceClass.POWER,
native_unit_of_measurement=UnitOfPower.WATT,
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
# WindSensor/WindSpeedSensor # WindSensor/WindSpeedSensor
@ -363,8 +350,6 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
name="Wind speed", name="Wind speed",
native_value=lambda value: round(cast(float, value), 2), native_value=lambda value: round(cast(float, value), 2),
icon="mdi:weather-windy", icon="mdi:weather-windy",
device_class=SensorDeviceClass.WIND_SPEED,
native_unit_of_measurement=UnitOfSpeed.METERS_PER_SECOND,
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
# SmokeSensor/SmokeSensor # SmokeSensor/SmokeSensor

View File

@ -59,11 +59,10 @@ CAPABILITY_TO_SENSORS: dict[
Category.DOOR: BinarySensorDeviceClass.DOOR, Category.DOOR: BinarySensorDeviceClass.DOOR,
Category.WINDOW: BinarySensorDeviceClass.WINDOW, Category.WINDOW: BinarySensorDeviceClass.WINDOW,
}, },
exists_fn=lambda key: key in {"freezer", "cooler", "cvroom"}, exists_fn=lambda key: key in {"freezer", "cooler"},
component_translation_key={ component_translation_key={
"freezer": "freezer_door", "freezer": "freezer_door",
"cooler": "cooler_door", "cooler": "cooler_door",
"cvroom": "cool_select_plus_door",
}, },
deprecated_fn=( deprecated_fn=(
lambda status: "fridge_door" lambda status: "fridge_door"

View File

@ -48,9 +48,6 @@
"cooler_door": { "cooler_door": {
"name": "Cooler door" "name": "Cooler door"
}, },
"cool_select_plus_door": {
"name": "CoolSelect+ door"
},
"remote_control": { "remote_control": {
"name": "Remote control" "name": "Remote control"
}, },

View File

@ -23,7 +23,8 @@ from . import (
@pytest.fixture(name="disable_bluez_manager_socket", autouse=True, scope="package") @pytest.fixture(name="disable_bluez_manager_socket", autouse=True, scope="package")
def disable_bluez_manager_socket(): def disable_bluez_manager_socket():
"""Mock the bluez manager socket.""" """Mock the bluez manager socket."""
bleak_manager.get_global_bluez_manager_with_timeout._has_dbus_socket = False with patch.object(bleak_manager, "get_global_bluez_manager_with_timeout"):
yield
@pytest.fixture(name="disable_dbus_socket", autouse=True, scope="package") @pytest.fixture(name="disable_dbus_socket", autouse=True, scope="package")

View File

@ -178,22 +178,6 @@ async def test_reproducing_states(
| CoverEntityFeature.OPEN, | CoverEntityFeature.OPEN,
}, },
) )
hass.states.async_set(
"cover.closed_supports_all_features",
CoverState.CLOSED,
{
ATTR_CURRENT_POSITION: 0,
ATTR_CURRENT_TILT_POSITION: 0,
ATTR_SUPPORTED_FEATURES: CoverEntityFeature.OPEN
| CoverEntityFeature.CLOSE
| CoverEntityFeature.SET_POSITION
| CoverEntityFeature.STOP
| CoverEntityFeature.OPEN_TILT
| CoverEntityFeature.CLOSE_TILT
| CoverEntityFeature.STOP_TILT
| CoverEntityFeature.SET_TILT_POSITION,
},
)
hass.states.async_set( hass.states.async_set(
"cover.tilt_only_open", "cover.tilt_only_open",
CoverState.OPEN, CoverState.OPEN,
@ -265,14 +249,6 @@ async def test_reproducing_states(
await async_reproduce_state( await async_reproduce_state(
hass, hass,
[ [
State(
"cover.closed_supports_all_features",
CoverState.CLOSED,
{
ATTR_CURRENT_POSITION: 0,
ATTR_CURRENT_TILT_POSITION: 0,
},
),
State("cover.entity_close", CoverState.CLOSED), State("cover.entity_close", CoverState.CLOSED),
State("cover.closed_only_supports_close_open", CoverState.CLOSED), State("cover.closed_only_supports_close_open", CoverState.CLOSED),
State("cover.closed_only_supports_tilt_close_open", CoverState.CLOSED), State("cover.closed_only_supports_tilt_close_open", CoverState.CLOSED),
@ -388,11 +364,6 @@ async def test_reproducing_states(
await async_reproduce_state( await async_reproduce_state(
hass, hass,
[ [
State(
"cover.closed_supports_all_features",
CoverState.CLOSED,
{ATTR_CURRENT_POSITION: 0, ATTR_CURRENT_TILT_POSITION: 50},
),
State("cover.entity_close", CoverState.OPEN), State("cover.entity_close", CoverState.OPEN),
State( State(
"cover.closed_only_supports_close_open", "cover.closed_only_supports_close_open",
@ -487,6 +458,7 @@ async def test_reproducing_states(
valid_close_calls = [ valid_close_calls = [
{"entity_id": "cover.entity_open"}, {"entity_id": "cover.entity_open"},
{"entity_id": "cover.entity_open_attr"}, {"entity_id": "cover.entity_open_attr"},
{"entity_id": "cover.entity_entirely_open"},
{"entity_id": "cover.open_only_supports_close_open"}, {"entity_id": "cover.open_only_supports_close_open"},
{"entity_id": "cover.open_missing_all_features"}, {"entity_id": "cover.open_missing_all_features"},
] ]
@ -509,8 +481,11 @@ async def test_reproducing_states(
valid_open_calls.remove(call.data) valid_open_calls.remove(call.data)
valid_close_tilt_calls = [ valid_close_tilt_calls = [
{"entity_id": "cover.entity_open_tilt"},
{"entity_id": "cover.entity_entirely_open"},
{"entity_id": "cover.tilt_only_open"}, {"entity_id": "cover.tilt_only_open"},
{"entity_id": "cover.entity_open_attr"}, {"entity_id": "cover.entity_open_attr"},
{"entity_id": "cover.tilt_only_tilt_position_100"},
{"entity_id": "cover.open_only_supports_tilt_close_open"}, {"entity_id": "cover.open_only_supports_tilt_close_open"},
] ]
assert len(close_tilt_calls) == len(valid_close_tilt_calls) assert len(close_tilt_calls) == len(valid_close_tilt_calls)
@ -520,7 +495,9 @@ async def test_reproducing_states(
valid_close_tilt_calls.remove(call.data) valid_close_tilt_calls.remove(call.data)
valid_open_tilt_calls = [ valid_open_tilt_calls = [
{"entity_id": "cover.entity_close_tilt"},
{"entity_id": "cover.tilt_only_closed"}, {"entity_id": "cover.tilt_only_closed"},
{"entity_id": "cover.tilt_only_tilt_position_0"},
{"entity_id": "cover.closed_only_supports_tilt_close_open"}, {"entity_id": "cover.closed_only_supports_tilt_close_open"},
] ]
assert len(open_tilt_calls) == len(valid_open_tilt_calls) assert len(open_tilt_calls) == len(valid_open_tilt_calls)
@ -546,14 +523,6 @@ async def test_reproducing_states(
"entity_id": "cover.open_only_supports_position", "entity_id": "cover.open_only_supports_position",
ATTR_POSITION: 0, ATTR_POSITION: 0,
}, },
{
"entity_id": "cover.closed_supports_all_features",
ATTR_POSITION: 0,
},
{
"entity_id": "cover.entity_entirely_open",
ATTR_POSITION: 0,
},
] ]
assert len(position_calls) == len(valid_position_calls) assert len(position_calls) == len(valid_position_calls)
for call in position_calls: for call in position_calls:
@ -582,34 +551,7 @@ async def test_reproducing_states(
"entity_id": "cover.tilt_partial_open_only_supports_tilt_position", "entity_id": "cover.tilt_partial_open_only_supports_tilt_position",
ATTR_TILT_POSITION: 70, ATTR_TILT_POSITION: 70,
}, },
{
"entity_id": "cover.closed_supports_all_features",
ATTR_TILT_POSITION: 50,
},
{
"entity_id": "cover.entity_close_tilt",
ATTR_TILT_POSITION: 100,
},
{
"entity_id": "cover.entity_open_tilt",
ATTR_TILT_POSITION: 0,
},
{
"entity_id": "cover.entity_entirely_open",
ATTR_TILT_POSITION: 0,
},
{
"entity_id": "cover.tilt_only_tilt_position_100",
ATTR_TILT_POSITION: 0,
},
{
"entity_id": "cover.tilt_only_tilt_position_0",
ATTR_TILT_POSITION: 100,
},
] ]
for call in position_tilt_calls:
if ATTR_TILT_POSITION not in call.data:
continue
assert len(position_tilt_calls) == len(valid_position_tilt_calls) assert len(position_tilt_calls) == len(valid_position_tilt_calls)
for call in position_tilt_calls: for call in position_tilt_calls:
assert call.domain == "cover" assert call.domain == "cover"

View File

@ -17,7 +17,7 @@
'device_id': <ANY>, 'device_id': <ANY>,
'disabled_by': None, 'disabled_by': None,
'domain': 'climate', 'domain': 'climate',
'entity_category': None, 'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'climate.thermostat_1', 'entity_id': 'climate.thermostat_1',
'has_entity_name': True, 'has_entity_name': True,
'hidden_by': None, 'hidden_by': None,
@ -84,7 +84,7 @@
'device_id': <ANY>, 'device_id': <ANY>,
'disabled_by': None, 'disabled_by': None,
'domain': 'climate', 'domain': 'climate',
'entity_category': None, 'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'climate.thermostat_1', 'entity_id': 'climate.thermostat_1',
'has_entity_name': True, 'has_entity_name': True,
'hidden_by': None, 'hidden_by': None,
@ -151,7 +151,7 @@
'device_id': <ANY>, 'device_id': <ANY>,
'disabled_by': None, 'disabled_by': None,
'domain': 'climate', 'domain': 'climate',
'entity_category': None, 'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'climate.thermostat_1', 'entity_id': 'climate.thermostat_1',
'has_entity_name': True, 'has_entity_name': True,
'hidden_by': None, 'hidden_by': None,
@ -218,7 +218,7 @@
'device_id': <ANY>, 'device_id': <ANY>,
'disabled_by': None, 'disabled_by': None,
'domain': 'climate', 'domain': 'climate',
'entity_category': None, 'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'climate.thermostat_1', 'entity_id': 'climate.thermostat_1',
'has_entity_name': True, 'has_entity_name': True,
'hidden_by': None, 'hidden_by': None,

View File

@ -107,7 +107,6 @@ def mock_smartthings() -> Generator[AsyncMock]:
"centralite", "centralite",
"da_ref_normal_000001", "da_ref_normal_000001",
"da_ref_normal_01011", "da_ref_normal_01011",
"da_ref_normal_01001",
"vd_network_audio_002s", "vd_network_audio_002s",
"vd_sensor_light_2023", "vd_sensor_light_2023",
"iphone", "iphone",

View File

@ -1,929 +0,0 @@
{
"components": {
"pantry-01": {
"samsungce.foodDefrost": {
"supportedOptions": {
"value": null
},
"foodType": {
"value": null
},
"weight": {
"value": null
},
"operationTime": {
"value": null
},
"remainingTime": {
"value": null
}
},
"samsungce.fridgePantryInfo": {
"name": {
"value": null
}
},
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": ["samsungce.meatAging", "samsungce.foodDefrost"],
"timestamp": "2022-02-07T10:54:05.580Z"
}
},
"samsungce.meatAging": {
"zoneInfo": {
"value": null
},
"supportedMeatTypes": {
"value": null
},
"supportedAgingMethods": {
"value": null
},
"status": {
"value": null
}
},
"samsungce.fridgePantryMode": {
"mode": {
"value": null
},
"supportedModes": {
"value": null
}
}
},
"icemaker": {
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": [],
"timestamp": "2022-02-07T10:54:05.580Z"
}
},
"switch": {
"switch": {
"value": "on",
"timestamp": "2025-02-07T12:01:52.528Z"
}
}
},
"scale-10": {
"samsungce.connectionState": {
"connectionState": {
"value": null
}
},
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": [],
"timestamp": "2022-02-07T10:54:05.580Z"
}
},
"samsungce.weightMeasurement": {
"weight": {
"value": null
}
},
"samsungce.scaleSettings": {
"enabled": {
"value": null
}
},
"samsungce.weightMeasurementCalibration": {}
},
"scale-11": {
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": [],
"timestamp": "2022-02-07T10:54:05.580Z"
}
},
"samsungce.weightMeasurement": {
"weight": {
"value": null
}
}
},
"camera-01": {
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": ["switch"],
"timestamp": "2023-12-17T11:19:18.845Z"
}
},
"switch": {
"switch": {
"value": null
}
}
},
"cooler": {
"contactSensor": {
"contact": {
"value": "closed",
"timestamp": "2025-02-09T00:23:41.655Z"
}
},
"samsungce.unavailableCapabilities": {
"unavailableCommands": {
"value": [],
"timestamp": "2024-11-06T12:35:50.411Z"
}
},
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": [],
"timestamp": "2024-06-17T06:16:33.918Z"
}
},
"temperatureMeasurement": {
"temperatureRange": {
"value": null
},
"temperature": {
"value": 37,
"unit": "F",
"timestamp": "2025-02-01T19:39:00.493Z"
}
},
"custom.thermostatSetpointControl": {
"minimumSetpoint": {
"value": 34,
"unit": "F",
"timestamp": "2025-02-01T19:39:00.493Z"
},
"maximumSetpoint": {
"value": 44,
"unit": "F",
"timestamp": "2025-02-01T19:39:00.493Z"
}
},
"thermostatCoolingSetpoint": {
"coolingSetpointRange": {
"value": {
"minimum": 34,
"maximum": 44,
"step": 1
},
"unit": "F",
"timestamp": "2025-02-01T19:39:00.493Z"
},
"coolingSetpoint": {
"value": 37,
"unit": "F",
"timestamp": "2025-02-01T19:39:00.493Z"
}
}
},
"freezer": {
"contactSensor": {
"contact": {
"value": "closed",
"timestamp": "2025-02-09T00:00:44.267Z"
}
},
"samsungce.unavailableCapabilities": {
"unavailableCommands": {
"value": [],
"timestamp": "2024-11-06T12:35:50.411Z"
}
},
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": ["samsungce.freezerConvertMode"],
"timestamp": "2024-11-06T09:00:29.743Z"
}
},
"temperatureMeasurement": {
"temperatureRange": {
"value": null
},
"temperature": {
"value": 0,
"unit": "F",
"timestamp": "2025-02-01T19:39:00.493Z"
}
},
"custom.thermostatSetpointControl": {
"minimumSetpoint": {
"value": -8,
"unit": "F",
"timestamp": "2025-02-01T19:39:00.493Z"
},
"maximumSetpoint": {
"value": 5,
"unit": "F",
"timestamp": "2025-02-01T19:39:00.493Z"
}
},
"samsungce.freezerConvertMode": {
"supportedFreezerConvertModes": {
"value": [],
"timestamp": "2025-02-01T19:39:00.448Z"
},
"freezerConvertMode": {
"value": null
}
},
"thermostatCoolingSetpoint": {
"coolingSetpointRange": {
"value": {
"minimum": -8,
"maximum": 5,
"step": 1
},
"unit": "F",
"timestamp": "2025-02-01T19:39:00.493Z"
},
"coolingSetpoint": {
"value": 0,
"unit": "F",
"timestamp": "2025-02-01T19:39:00.493Z"
}
}
},
"main": {
"contactSensor": {
"contact": {
"value": "closed",
"timestamp": "2025-02-09T00:23:41.655Z"
}
},
"samsungce.viewInside": {
"supportedFocusAreas": {
"value": ["mainShelves"],
"timestamp": "2025-02-01T19:39:00.946Z"
},
"contents": {
"value": [
{
"fileId": "d3e1f875-f8b3-a031-737b-366eaa227773",
"mimeType": "image/jpeg",
"expiredTime": "2025-01-20T16:17:04Z",
"focusArea": "mainShelves"
},
{
"fileId": "9fccb6b4-e71f-6c7f-9935-f6082bb6ccfe",
"mimeType": "image/jpeg",
"expiredTime": "2025-01-20T16:17:04Z",
"focusArea": "mainShelves"
},
{
"fileId": "20b57a4d-b7fc-17fc-3a03-0fb84fb4efab",
"mimeType": "image/jpeg",
"expiredTime": "2025-01-20T16:17:05Z",
"focusArea": "mainShelves"
}
],
"timestamp": "2025-01-20T16:07:05.423Z"
},
"lastUpdatedTime": {
"value": "2025-02-07T12:01:52Z",
"timestamp": "2025-02-07T12:01:52.585Z"
}
},
"samsungce.fridgeFoodList": {
"outOfSyncChanges": {
"value": null
},
"refreshResult": {
"value": null
}
},
"samsungce.deviceIdentification": {
"micomAssayCode": {
"value": null
},
"modelName": {
"value": null
},
"serialNumber": {
"value": null
},
"serialNumberExtra": {
"value": null
},
"modelClassificationCode": {
"value": null
},
"description": {
"value": null
},
"releaseYear": {
"value": 19,
"timestamp": "2024-11-06T09:00:29.743Z"
},
"binaryId": {
"value": "24K_REF_LCD_FHUB9.0",
"timestamp": "2025-02-07T12:01:53.067Z"
}
},
"samsungce.quickControl": {
"version": {
"value": "1.0",
"timestamp": "2025-02-01T19:39:01.848Z"
}
},
"custom.fridgeMode": {
"fridgeModeValue": {
"value": null
},
"fridgeMode": {
"value": null
},
"supportedFridgeModes": {
"value": null
}
},
"ocf": {
"st": {
"value": "2024-11-08T11:56:59Z",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"mndt": {
"value": "",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"mnfv": {
"value": "20240616.213423",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"mnhw": {
"value": "",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"di": {
"value": "7d3feb98-8a36-4351-c362-5e21ad3a78dd",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"mnsl": {
"value": "",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"dmv": {
"value": "res.1.1.0,sh.1.1.0",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"n": {
"value": "Family Hub",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"mnmo": {
"value": "24K_REF_LCD_FHUB9.0|00113141|0002034e051324200103000000000000",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"vid": {
"value": "DA-REF-NORMAL-01001",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"mnmn": {
"value": "Samsung Electronics",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"mnml": {
"value": "",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"mnpv": {
"value": "7.0",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"mnos": {
"value": "Tizen",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"pi": {
"value": "7d3feb98-8a36-4351-c362-5e21ad3a78dd",
"timestamp": "2025-01-02T12:37:43.756Z"
},
"icv": {
"value": "core.1.1.0",
"timestamp": "2025-01-02T12:37:43.756Z"
}
},
"samsungce.fridgeVacationMode": {
"vacationMode": {
"value": null
}
},
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": [
"thermostatCoolingSetpoint",
"temperatureMeasurement",
"custom.fridgeMode",
"custom.deviceReportStateConfiguration",
"samsungce.fridgeFoodList",
"samsungce.runestoneHomeContext",
"demandResponseLoadControl",
"samsungce.fridgeVacationMode",
"samsungce.sabbathMode"
],
"timestamp": "2025-02-08T23:57:45.739Z"
}
},
"samsungce.driverVersion": {
"versionNumber": {
"value": 24090102,
"timestamp": "2024-11-06T09:00:29.743Z"
}
},
"sec.diagnosticsInformation": {
"logType": {
"value": ["errCode", "dump"],
"timestamp": "2025-02-01T19:39:00.523Z"
},
"endpoint": {
"value": "SSM",
"timestamp": "2025-02-01T19:39:00.523Z"
},
"minVersion": {
"value": "1.0",
"timestamp": "2025-02-01T19:39:00.523Z"
},
"signinPermission": {
"value": null
},
"setupId": {
"value": "500",
"timestamp": "2025-02-01T19:39:00.523Z"
},
"protocolType": {
"value": "wifi_https",
"timestamp": "2025-02-01T19:39:00.523Z"
},
"tsId": {
"value": null
},
"mnId": {
"value": "0AJT",
"timestamp": "2025-02-01T19:39:00.523Z"
},
"dumpType": {
"value": "file",
"timestamp": "2025-02-01T19:39:00.523Z"
}
},
"temperatureMeasurement": {
"temperatureRange": {
"value": null
},
"temperature": {
"value": null
}
},
"custom.deviceReportStateConfiguration": {
"reportStateRealtimePeriod": {
"value": null
},
"reportStateRealtime": {
"value": {
"state": "disabled"
},
"timestamp": "2025-02-01T19:39:00.345Z"
},
"reportStatePeriod": {
"value": "enabled",
"timestamp": "2025-02-01T19:39:00.345Z"
}
},
"thermostatCoolingSetpoint": {
"coolingSetpointRange": {
"value": null
},
"coolingSetpoint": {
"value": null
}
},
"custom.disabledComponents": {
"disabledComponents": {
"value": [
"icemaker-02",
"icemaker-03",
"pantry-01",
"camera-01",
"scale-10",
"scale-11"
],
"timestamp": "2025-02-07T12:01:52.638Z"
}
},
"demandResponseLoadControl": {
"drlcStatus": {
"value": {
"drlcType": 1,
"drlcLevel": 0,
"duration": 0,
"override": false
},
"timestamp": "2025-02-01T19:38:59.899Z"
}
},
"samsungce.sabbathMode": {
"supportedActions": {
"value": null
},
"status": {
"value": null
}
},
"powerConsumptionReport": {
"powerConsumption": {
"value": {
"energy": 4381422,
"deltaEnergy": 27,
"power": 144,
"powerEnergy": 27.01890500307083,
"persistedEnergy": 0,
"energySaved": 0,
"start": "2025-02-09T00:13:39Z",
"end": "2025-02-09T00:25:23Z"
},
"timestamp": "2025-02-09T00:25:23.843Z"
}
},
"refresh": {},
"samsungce.runestoneHomeContext": {
"supportedContexts": {
"value": [
{
"context": "HOME_IN",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "ASLEEP",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "AWAKE",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "COOKING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "FINISH_COOKING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "EATING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "FINISH_EATING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "DOING_LAUNDRY",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "FINISH_DOING_LAUNDRY",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "CLEANING_HOUSE",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "FINISH_CLEANING_HOUSE",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "MUSIC_LISTENING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "FINISH_MUSIC_LISTENING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "AIR_CONDITIONING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "FINISH_AIR_CONDITIONING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "WASHING_DISHES",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "FINISH_WASHING_DISHES",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "CARING_CLOTHING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "FINISH_CARING_CLOTHING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "WATCHING_TV",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "FINISH_WATCHING_TV",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "BEFORE_BEDTIME",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "BEFORE_COOKING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "BEFORE_HOME_OUT",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "ORDERING_DELIVERY_FOOD",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "FINISH_ORDERING_DELIVERY_FOOD",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "ONLINE_GROCERY_SHOPPING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
},
{
"context": "FINISH_ONLINE_GROCERY_SHOPPING",
"place": "HOME",
"startTime": "99:99",
"endTime": "99:99"
}
],
"timestamp": "2025-02-01T19:39:02.150Z"
}
},
"execute": {
"data": {
"value": {
"payload": {
"rt": ["x.com.samsung.da.fridge"],
"if": ["oic.if.a"],
"x.com.samsung.da.rapidFridge": "Off",
"x.com.samsung.da.rapidFreezing": "Off"
}
},
"data": {
"href": "/refrigeration/vs/0"
},
"timestamp": "2024-03-26T09:06:17.169Z"
}
},
"sec.wifiConfiguration": {
"autoReconnection": {
"value": true,
"timestamp": "2025-02-01T19:39:01.951Z"
},
"minVersion": {
"value": "1.0",
"timestamp": "2025-02-01T19:39:01.951Z"
},
"supportedWiFiFreq": {
"value": ["2.4G", "5G"],
"timestamp": "2025-02-01T19:39:01.951Z"
},
"supportedAuthType": {
"value": ["OPEN", "WEP", "WPA-PSK", "WPA2-PSK"],
"timestamp": "2025-02-01T19:39:01.951Z"
},
"protocolType": {
"value": ["helper_hotspot"],
"timestamp": "2025-02-01T19:39:01.951Z"
}
},
"refrigeration": {
"defrost": {
"value": "off",
"timestamp": "2025-02-01T19:38:59.276Z"
},
"rapidCooling": {
"value": "off",
"timestamp": "2025-02-01T19:39:00.497Z"
},
"rapidFreezing": {
"value": "off",
"timestamp": "2025-02-01T19:39:00.497Z"
}
},
"samsungce.powerCool": {
"activated": {
"value": false,
"timestamp": "2025-02-01T19:39:00.497Z"
}
},
"custom.energyType": {
"energyType": {
"value": "2.0",
"timestamp": "2022-02-07T10:54:05.580Z"
},
"energySavingSupport": {
"value": false,
"timestamp": "2022-02-07T10:57:35.490Z"
},
"drMaxDuration": {
"value": 1440,
"unit": "min",
"timestamp": "2022-02-07T11:50:40.228Z"
},
"energySavingLevel": {
"value": null
},
"energySavingInfo": {
"value": null
},
"supportedEnergySavingLevels": {
"value": null
},
"energySavingOperation": {
"value": null
},
"notificationTemplateID": {
"value": null
},
"energySavingOperationSupport": {
"value": false,
"timestamp": "2022-02-07T11:50:40.228Z"
}
},
"samsungce.softwareUpdate": {
"targetModule": {
"value": {},
"timestamp": "2025-02-01T19:39:00.200Z"
},
"otnDUID": {
"value": "2DCEZFTFQZPMO",
"timestamp": "2025-02-01T19:39:00.523Z"
},
"lastUpdatedDate": {
"value": null
},
"availableModules": {
"value": [],
"timestamp": "2025-02-01T19:39:00.523Z"
},
"newVersionAvailable": {
"value": false,
"timestamp": "2025-02-01T19:39:00.200Z"
},
"operatingState": {
"value": null
},
"progress": {
"value": null
}
},
"samsungce.powerFreeze": {
"activated": {
"value": false,
"timestamp": "2025-02-01T19:39:00.497Z"
}
},
"custom.waterFilter": {
"waterFilterUsageStep": {
"value": 1,
"timestamp": "2025-02-01T19:38:59.973Z"
},
"waterFilterResetType": {
"value": ["replaceable"],
"timestamp": "2025-02-01T19:38:59.973Z"
},
"waterFilterCapacity": {
"value": null
},
"waterFilterLastResetDate": {
"value": null
},
"waterFilterUsage": {
"value": 52,
"timestamp": "2025-02-08T05:06:45.769Z"
},
"waterFilterStatus": {
"value": "normal",
"timestamp": "2025-02-01T19:38:59.973Z"
}
}
},
"cvroom": {
"custom.fridgeMode": {
"fridgeModeValue": {
"value": null
},
"fridgeMode": {
"value": "CV_FDR_DELI",
"timestamp": "2025-02-01T19:39:00.448Z"
},
"supportedFridgeModes": {
"value": [
"CV_FDR_WINE",
"CV_FDR_DELI",
"CV_FDR_BEVERAGE",
"CV_FDR_MEAT"
],
"timestamp": "2025-02-01T19:39:00.448Z"
}
},
"contactSensor": {
"contact": {
"value": "closed",
"timestamp": "2025-02-08T23:22:04.631Z"
}
},
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": [],
"timestamp": "2021-07-27T01:19:43.145Z"
}
}
},
"icemaker-02": {
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": [],
"timestamp": "2022-07-28T18:47:07.039Z"
}
},
"switch": {
"switch": {
"value": null
}
}
},
"icemaker-03": {
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": [],
"timestamp": "2023-12-15T01:05:09.803Z"
}
},
"switch": {
"switch": {
"value": null
}
}
}
}
}

View File

@ -1,433 +0,0 @@
{
"items": [
{
"deviceId": "7d3feb98-8a36-4351-c362-5e21ad3a78dd",
"name": "Family Hub",
"label": "Refrigerator",
"manufacturerName": "Samsung Electronics",
"presentationId": "DA-REF-NORMAL-01001",
"deviceManufacturerCode": "Samsung Electronics",
"locationId": "2487472a-06c4-4bce-8f4c-700c5f8644f8",
"ownerId": "b603d7e8-6066-4e10-8102-afa752a63816",
"roomId": "acaa060a-7c19-4579-8a4a-5ad891a2f0c1",
"deviceTypeName": "Samsung OCF Refrigerator",
"components": [
{
"id": "main",
"label": "main",
"capabilities": [
{
"id": "contactSensor",
"version": 1
},
{
"id": "execute",
"version": 1
},
{
"id": "ocf",
"version": 1
},
{
"id": "powerConsumptionReport",
"version": 1
},
{
"id": "demandResponseLoadControl",
"version": 1
},
{
"id": "refresh",
"version": 1
},
{
"id": "refrigeration",
"version": 1
},
{
"id": "temperatureMeasurement",
"version": 1
},
{
"id": "thermostatCoolingSetpoint",
"version": 1
},
{
"id": "custom.deviceReportStateConfiguration",
"version": 1
},
{
"id": "custom.energyType",
"version": 1
},
{
"id": "custom.fridgeMode",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
},
{
"id": "custom.disabledComponents",
"version": 1
},
{
"id": "custom.waterFilter",
"version": 1
},
{
"id": "samsungce.fridgeFoodList",
"version": 1
},
{
"id": "samsungce.softwareUpdate",
"version": 1
},
{
"id": "samsungce.deviceIdentification",
"version": 1
},
{
"id": "samsungce.driverVersion",
"version": 1
},
{
"id": "samsungce.fridgeVacationMode",
"version": 1
},
{
"id": "samsungce.powerCool",
"version": 1
},
{
"id": "samsungce.powerFreeze",
"version": 1
},
{
"id": "samsungce.sabbathMode",
"version": 1
},
{
"id": "samsungce.viewInside",
"version": 1
},
{
"id": "samsungce.runestoneHomeContext",
"version": 1
},
{
"id": "samsungce.quickControl",
"version": 1
},
{
"id": "sec.diagnosticsInformation",
"version": 1
},
{
"id": "sec.wifiConfiguration",
"version": 1
}
],
"categories": [
{
"name": "Refrigerator",
"categoryType": "manufacturer"
}
]
},
{
"id": "freezer",
"label": "freezer",
"capabilities": [
{
"id": "contactSensor",
"version": 1
},
{
"id": "temperatureMeasurement",
"version": 1
},
{
"id": "thermostatCoolingSetpoint",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
},
{
"id": "custom.thermostatSetpointControl",
"version": 1
},
{
"id": "samsungce.freezerConvertMode",
"version": 1
},
{
"id": "samsungce.unavailableCapabilities",
"version": 1
}
],
"categories": [
{
"name": "Other",
"categoryType": "manufacturer"
}
]
},
{
"id": "cooler",
"label": "cooler",
"capabilities": [
{
"id": "contactSensor",
"version": 1
},
{
"id": "temperatureMeasurement",
"version": 1
},
{
"id": "thermostatCoolingSetpoint",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
},
{
"id": "custom.thermostatSetpointControl",
"version": 1
},
{
"id": "samsungce.unavailableCapabilities",
"version": 1
}
],
"categories": [
{
"name": "Other",
"categoryType": "manufacturer"
}
]
},
{
"id": "cvroom",
"label": "cvroom",
"capabilities": [
{
"id": "contactSensor",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
},
{
"id": "custom.fridgeMode",
"version": 1
}
],
"categories": [
{
"name": "Other",
"categoryType": "manufacturer"
}
]
},
{
"id": "icemaker",
"label": "icemaker",
"capabilities": [
{
"id": "switch",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
}
],
"categories": [
{
"name": "Other",
"categoryType": "manufacturer"
}
]
},
{
"id": "icemaker-02",
"label": "icemaker-02",
"capabilities": [
{
"id": "switch",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
}
],
"categories": [
{
"name": "Other",
"categoryType": "manufacturer"
}
]
},
{
"id": "icemaker-03",
"label": "icemaker-03",
"capabilities": [
{
"id": "switch",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
}
],
"categories": [
{
"name": "Other",
"categoryType": "manufacturer"
}
]
},
{
"id": "scale-10",
"label": "scale-10",
"capabilities": [
{
"id": "samsungce.weightMeasurement",
"version": 1
},
{
"id": "samsungce.weightMeasurementCalibration",
"version": 1
},
{
"id": "samsungce.connectionState",
"version": 1
},
{
"id": "samsungce.scaleSettings",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
}
],
"categories": [
{
"name": "Other",
"categoryType": "manufacturer"
}
]
},
{
"id": "scale-11",
"label": "scale-11",
"capabilities": [
{
"id": "samsungce.weightMeasurement",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
}
],
"categories": [
{
"name": "Other",
"categoryType": "manufacturer"
}
]
},
{
"id": "pantry-01",
"label": "pantry-01",
"capabilities": [
{
"id": "samsungce.fridgePantryInfo",
"version": 1
},
{
"id": "samsungce.fridgePantryMode",
"version": 1
},
{
"id": "samsungce.meatAging",
"version": 1
},
{
"id": "samsungce.foodDefrost",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
}
],
"categories": [
{
"name": "Other",
"categoryType": "manufacturer"
}
]
},
{
"id": "camera-01",
"label": "camera-01",
"capabilities": [
{
"id": "switch",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
}
],
"categories": [
{
"name": "Other",
"categoryType": "manufacturer"
}
]
}
],
"createTime": "2021-07-27T01:19:42.051Z",
"profile": {
"id": "4c654f1b-8ef4-35b0-920e-c12568554213"
},
"ocf": {
"ocfDeviceType": "oic.d.refrigerator",
"name": "Family Hub",
"specVersion": "core.1.1.0",
"verticalDomainSpecVersion": "res.1.1.0,sh.1.1.0",
"manufacturerName": "Samsung Electronics",
"modelNumber": "24K_REF_LCD_FHUB9.0|00113141|0002034e051324200103000000000000",
"platformVersion": "7.0",
"platformOS": "Tizen",
"hwVersion": "",
"firmwareVersion": "20240616.213423",
"vendorId": "DA-REF-NORMAL-01001",
"vendorResourceClientServerVersion": "4.0.22",
"locale": "",
"lastSignupTime": "2021-07-27T01:19:40.244392Z",
"transferCandidate": false,
"additionalAuthCodeRequired": false
},
"type": "OCF",
"restrictionTier": 0,
"allowed": [],
"executionContext": "CLOUD"
}
],
"_links": {}
}

View File

@ -761,150 +761,6 @@
'state': 'off', 'state': 'off',
}) })
# --- # ---
# name: test_all_entities[da_ref_normal_01001][binary_sensor.refrigerator_cooler_door-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'binary_sensor',
'entity_category': None,
'entity_id': 'binary_sensor.refrigerator_cooler_door',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <BinarySensorDeviceClass.DOOR: 'door'>,
'original_icon': None,
'original_name': 'Cooler door',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'cooler_door',
'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_cooler_contactSensor_contact_contact',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_ref_normal_01001][binary_sensor.refrigerator_cooler_door-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'door',
'friendly_name': 'Refrigerator Cooler door',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.refrigerator_cooler_door',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_all_entities[da_ref_normal_01001][binary_sensor.refrigerator_coolselect_door-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'binary_sensor',
'entity_category': None,
'entity_id': 'binary_sensor.refrigerator_coolselect_door',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <BinarySensorDeviceClass.DOOR: 'door'>,
'original_icon': None,
'original_name': 'CoolSelect+ door',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'cool_select_plus_door',
'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_cvroom_contactSensor_contact_contact',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_ref_normal_01001][binary_sensor.refrigerator_coolselect_door-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'door',
'friendly_name': 'Refrigerator CoolSelect+ door',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.refrigerator_coolselect_door',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_all_entities[da_ref_normal_01001][binary_sensor.refrigerator_freezer_door-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'binary_sensor',
'entity_category': None,
'entity_id': 'binary_sensor.refrigerator_freezer_door',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <BinarySensorDeviceClass.DOOR: 'door'>,
'original_icon': None,
'original_name': 'Freezer door',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'freezer_door',
'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_freezer_contactSensor_contact_contact',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_ref_normal_01001][binary_sensor.refrigerator_freezer_door-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'door',
'friendly_name': 'Refrigerator Freezer door',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.refrigerator_freezer_door',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_all_entities[da_ref_normal_01011][binary_sensor.frigo_cooler_door-entry] # name: test_all_entities[da_ref_normal_01011][binary_sensor.frigo_cooler_door-entry]
EntityRegistryEntrySnapshot({ EntityRegistryEntrySnapshot({
'aliases': set({ 'aliases': set({

View File

@ -187,50 +187,3 @@
'state': 'unknown', 'state': 'unknown',
}) })
# --- # ---
# name: test_all_entities[da_ref_normal_01001][button.refrigerator_reset_water_filter-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'button',
'entity_category': None,
'entity_id': 'button.refrigerator_reset_water_filter',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Reset water filter',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'reset_water_filter',
'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_main_custom.waterFilter_resetWaterFilter',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_ref_normal_01001][button.refrigerator_reset_water_filter-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Refrigerator Reset water filter',
}),
'context': <ANY>,
'entity_id': 'button.refrigerator_reset_water_filter',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
})
# ---

View File

@ -629,39 +629,6 @@
'via_device_id': None, 'via_device_id': None,
}) })
# --- # ---
# name: test_devices[da_ref_normal_01001]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': 'https://account.smartthings.com',
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': '',
'id': <ANY>,
'identifiers': set({
tuple(
'smartthings',
'7d3feb98-8a36-4351-c362-5e21ad3a78dd',
),
}),
'is_new': False,
'labels': set({
}),
'manufacturer': 'Samsung Electronics',
'model': '24K_REF_LCD_FHUB9.0',
'model_id': None,
'name': 'Refrigerator',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'suggested_area': None,
'sw_version': '20240616.213423',
'via_device_id': None,
})
# ---
# name: test_devices[da_ref_normal_01011] # name: test_devices[da_ref_normal_01011]
DeviceRegistryEntrySnapshot({ DeviceRegistryEntrySnapshot({
'area_id': None, 'area_id': None,

View File

@ -4049,283 +4049,6 @@
'state': '0.0135559777781698', 'state': '0.0135559777781698',
}) })
# --- # ---
# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_energy-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': None,
'entity_id': 'sensor.refrigerator_energy',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
'sensor': dict({
'suggested_display_precision': 2,
}),
}),
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
'original_icon': None,
'original_name': 'Energy',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_main_powerConsumptionReport_powerConsumption_energy_meter',
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
})
# ---
# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_energy-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Refrigerator Energy',
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.refrigerator_energy',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '4381.422',
})
# ---
# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_energy_difference-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'state_class': <SensorStateClass.TOTAL: 'total'>,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': None,
'entity_id': 'sensor.refrigerator_energy_difference',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
'sensor': dict({
'suggested_display_precision': 2,
}),
}),
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
'original_icon': None,
'original_name': 'Energy difference',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'energy_difference',
'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_main_powerConsumptionReport_powerConsumption_deltaEnergy_meter',
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
})
# ---
# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_energy_difference-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Refrigerator Energy difference',
'state_class': <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.refrigerator_energy_difference',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '0.027',
})
# ---
# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_energy_saved-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': None,
'entity_id': 'sensor.refrigerator_energy_saved',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
'sensor': dict({
'suggested_display_precision': 2,
}),
}),
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
'original_icon': None,
'original_name': 'Energy saved',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'energy_saved',
'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_main_powerConsumptionReport_powerConsumption_energySaved_meter',
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
})
# ---
# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_energy_saved-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Refrigerator Energy saved',
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.refrigerator_energy_saved',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '0.0',
})
# ---
# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_power-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': None,
'entity_id': 'sensor.refrigerator_power',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
'sensor': dict({
'suggested_display_precision': 2,
}),
}),
'original_device_class': <SensorDeviceClass.POWER: 'power'>,
'original_icon': None,
'original_name': 'Power',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_main_powerConsumptionReport_powerConsumption_power_meter',
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
})
# ---
# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_power-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Refrigerator Power',
'power_consumption_end': '2025-02-09T00:25:23Z',
'power_consumption_start': '2025-02-09T00:13:39Z',
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'sensor.refrigerator_power',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '144',
})
# ---
# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_power_energy-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': None,
'entity_id': 'sensor.refrigerator_power_energy',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
'sensor': dict({
'suggested_display_precision': 2,
}),
}),
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
'original_icon': None,
'original_name': 'Power energy',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'power_energy',
'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_main_powerConsumptionReport_powerConsumption_powerEnergy_meter',
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
})
# ---
# name: test_all_entities[da_ref_normal_01001][sensor.refrigerator_power_energy-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Refrigerator Power energy',
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.refrigerator_power_energy',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '0.0270189050030708',
})
# ---
# name: test_all_entities[da_ref_normal_01011][sensor.frigo_energy-entry] # name: test_all_entities[da_ref_normal_01011][sensor.frigo_energy-entry]
EntityRegistryEntrySnapshot({ EntityRegistryEntrySnapshot({
'aliases': set({ 'aliases': set({

View File

@ -93,53 +93,6 @@
'state': 'off', 'state': 'off',
}) })
# --- # ---
# name: test_all_entities[da_ref_normal_01001][switch.refrigerator_ice_maker-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': None,
'entity_id': 'switch.refrigerator_ice_maker',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Ice maker',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'ice_maker',
'unique_id': '7d3feb98-8a36-4351-c362-5e21ad3a78dd_icemaker_switch_switch_switch',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_ref_normal_01001][switch.refrigerator_ice_maker-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Refrigerator Ice maker',
}),
'context': <ANY>,
'entity_id': 'switch.refrigerator_ice_maker',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'on',
})
# ---
# name: test_all_entities[da_rvc_normal_000001][switch.robot_vacuum-entry] # name: test_all_entities[da_rvc_normal_000001][switch.robot_vacuum-entry]
EntityRegistryEntrySnapshot({ EntityRegistryEntrySnapshot({
'aliases': set({ 'aliases': set({