File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
homeassistant/components/smartthings
tests/components/smartthings/snapshots Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 3434 ATTR_MANUFACTURER ,
3535 ATTR_MODEL ,
3636 ATTR_MODEL_ID ,
37+ ATTR_SERIAL_NUMBER ,
3738 ATTR_SUGGESTED_AREA ,
3839 ATTR_SW_VERSION ,
3940 ATTR_VIA_DEVICE ,
@@ -479,6 +480,14 @@ def create_devices(
479480 ATTR_SW_VERSION : viper .software_version ,
480481 }
481482 )
483+ if (matter := device .device .matter ) is not None :
484+ kwargs .update (
485+ {
486+ ATTR_HW_VERSION : matter .hardware_version ,
487+ ATTR_SW_VERSION : matter .software_version ,
488+ ATTR_SERIAL_NUMBER : matter .serial_number ,
489+ }
490+ )
482491 if (
483492 device_registry .async_get_device ({(DOMAIN , device .device .device_id )})
484493 is None
Original file line number Diff line number Diff line change 198198 }),
199199 'disabled_by': None,
200200 'entry_type': None,
201- 'hw_version': None ,
201+ 'hw_version': '1.2.0' ,
202202 'id': <ANY>,
203203 'identifiers': set({
204204 tuple(
214214 'name': 'Radiator Thermostat II [+M] Wohnzimmer',
215215 'name_by_user': None,
216216 'primary_config_entry': <ANY>,
217- 'serial_number': None ,
218- 'sw_version': None ,
217+ 'serial_number': 'D44867FFFEB37584' ,
218+ 'sw_version': '2.00.09' ,
219219 'via_device_id': None,
220220 })
221221# ---
You can’t perform that action at this time.
0 commit comments