Skip to content

Commit 260ea9a

Browse files
Remove previously deprecated raw value attribute from onewire (#150112)
1 parent e1f6820 commit 260ea9a

File tree

5 files changed

+0
-114
lines changed

5 files changed

+0
-114
lines changed

homeassistant/components/onewire/entity.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ def extra_state_attributes(self) -> dict[str, Any] | None:
5353
"""Return the state attributes of the entity."""
5454
return {
5555
"device_file": self._device_file,
56-
# raw_value attribute is deprecated and can be removed in 2025.8
57-
"raw_value": self._value_raw,
5856
}
5957

6058
def _read_value(self) -> str:

tests/components/onewire/snapshots/test_binary_sensor.ambr

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
'attributes': ReadOnlyDict({
4040
'device_file': '/12.111111111111/sensed.A',
4141
'friendly_name': '12.111111111111 Sensed A',
42-
'raw_value': 1.0,
4342
}),
4443
'context': <ANY>,
4544
'entity_id': 'binary_sensor.12_111111111111_sensed_a',
@@ -89,7 +88,6 @@
8988
'attributes': ReadOnlyDict({
9089
'device_file': '/12.111111111111/sensed.B',
9190
'friendly_name': '12.111111111111 Sensed B',
92-
'raw_value': 0.0,
9391
}),
9492
'context': <ANY>,
9593
'entity_id': 'binary_sensor.12_111111111111_sensed_b',
@@ -139,7 +137,6 @@
139137
'attributes': ReadOnlyDict({
140138
'device_file': '/29.111111111111/sensed.0',
141139
'friendly_name': '29.111111111111 Sensed 0',
142-
'raw_value': 1.0,
143140
}),
144141
'context': <ANY>,
145142
'entity_id': 'binary_sensor.29_111111111111_sensed_0',
@@ -189,7 +186,6 @@
189186
'attributes': ReadOnlyDict({
190187
'device_file': '/29.111111111111/sensed.1',
191188
'friendly_name': '29.111111111111 Sensed 1',
192-
'raw_value': 0.0,
193189
}),
194190
'context': <ANY>,
195191
'entity_id': 'binary_sensor.29_111111111111_sensed_1',
@@ -239,7 +235,6 @@
239235
'attributes': ReadOnlyDict({
240236
'device_file': '/29.111111111111/sensed.2',
241237
'friendly_name': '29.111111111111 Sensed 2',
242-
'raw_value': 0.0,
243238
}),
244239
'context': <ANY>,
245240
'entity_id': 'binary_sensor.29_111111111111_sensed_2',
@@ -289,7 +284,6 @@
289284
'attributes': ReadOnlyDict({
290285
'device_file': '/29.111111111111/sensed.3',
291286
'friendly_name': '29.111111111111 Sensed 3',
292-
'raw_value': None,
293287
}),
294288
'context': <ANY>,
295289
'entity_id': 'binary_sensor.29_111111111111_sensed_3',
@@ -339,7 +333,6 @@
339333
'attributes': ReadOnlyDict({
340334
'device_file': '/29.111111111111/sensed.4',
341335
'friendly_name': '29.111111111111 Sensed 4',
342-
'raw_value': 0.0,
343336
}),
344337
'context': <ANY>,
345338
'entity_id': 'binary_sensor.29_111111111111_sensed_4',
@@ -389,7 +382,6 @@
389382
'attributes': ReadOnlyDict({
390383
'device_file': '/29.111111111111/sensed.5',
391384
'friendly_name': '29.111111111111 Sensed 5',
392-
'raw_value': 0.0,
393385
}),
394386
'context': <ANY>,
395387
'entity_id': 'binary_sensor.29_111111111111_sensed_5',
@@ -439,7 +431,6 @@
439431
'attributes': ReadOnlyDict({
440432
'device_file': '/29.111111111111/sensed.6',
441433
'friendly_name': '29.111111111111 Sensed 6',
442-
'raw_value': 0.0,
443434
}),
444435
'context': <ANY>,
445436
'entity_id': 'binary_sensor.29_111111111111_sensed_6',
@@ -489,7 +480,6 @@
489480
'attributes': ReadOnlyDict({
490481
'device_file': '/29.111111111111/sensed.7',
491482
'friendly_name': '29.111111111111 Sensed 7',
492-
'raw_value': 0.0,
493483
}),
494484
'context': <ANY>,
495485
'entity_id': 'binary_sensor.29_111111111111_sensed_7',
@@ -539,7 +529,6 @@
539529
'attributes': ReadOnlyDict({
540530
'device_file': '/3A.111111111111/sensed.A',
541531
'friendly_name': '3A.111111111111 Sensed A',
542-
'raw_value': 1.0,
543532
}),
544533
'context': <ANY>,
545534
'entity_id': 'binary_sensor.3a_111111111111_sensed_a',
@@ -589,7 +578,6 @@
589578
'attributes': ReadOnlyDict({
590579
'device_file': '/3A.111111111111/sensed.B',
591580
'friendly_name': '3A.111111111111 Sensed B',
592-
'raw_value': 0.0,
593581
}),
594582
'context': <ANY>,
595583
'entity_id': 'binary_sensor.3a_111111111111_sensed_b',
@@ -640,7 +628,6 @@
640628
'device_class': 'problem',
641629
'device_file': '/EF.111111111113/hub/short.0',
642630
'friendly_name': 'EF.111111111113 Hub short on branch 0',
643-
'raw_value': 1.0,
644631
}),
645632
'context': <ANY>,
646633
'entity_id': 'binary_sensor.ef_111111111113_hub_short_on_branch_0',
@@ -691,7 +678,6 @@
691678
'device_class': 'problem',
692679
'device_file': '/EF.111111111113/hub/short.1',
693680
'friendly_name': 'EF.111111111113 Hub short on branch 1',
694-
'raw_value': 0.0,
695681
}),
696682
'context': <ANY>,
697683
'entity_id': 'binary_sensor.ef_111111111113_hub_short_on_branch_1',
@@ -742,7 +728,6 @@
742728
'device_class': 'problem',
743729
'device_file': '/EF.111111111113/hub/short.2',
744730
'friendly_name': 'EF.111111111113 Hub short on branch 2',
745-
'raw_value': 1.0,
746731
}),
747732
'context': <ANY>,
748733
'entity_id': 'binary_sensor.ef_111111111113_hub_short_on_branch_2',
@@ -793,7 +778,6 @@
793778
'device_class': 'problem',
794779
'device_file': '/EF.111111111113/hub/short.3',
795780
'friendly_name': 'EF.111111111113 Hub short on branch 3',
796-
'raw_value': 0.0,
797781
}),
798782
'context': <ANY>,
799783
'entity_id': 'binary_sensor.ef_111111111113_hub_short_on_branch_3',

tests/components/onewire/snapshots/test_select.ambr

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
'11',
5353
'12',
5454
]),
55-
'raw_value': 12.0,
5655
}),
5756
'context': <ANY>,
5857
'entity_id': 'select.28_111111111111_temperature_resolution',

0 commit comments

Comments
 (0)