Fix for missing/corrupt names of Matter devices (#92073)
* Fix missing names on some devices/bridges
* guard for None devicetype (just in case)
* Update homeassistant/components/matter/adapter.py
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
* Update homeassistant/components/matter/adapter.py
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
* Update homeassistant/components/matter/adapter.py
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
* Update homeassistant/components/matter/adapter.py
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
* black and isort
* Code quality
* Add tests
* Add coverage test, add None for empty string
---------
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
Co-authored-by: jbouwh <jan@jbsoft.nl>