docs: def _update_name(self):
          """Set the device name from _json_state, with a sensible default."""
          self._name = self._json_state.get('name')
          if not self._name:
              self._name = self.type + ' ' + self.device_id