docs: def _get_next_id(self):
          """Return the next available sensor id."""
          if self.sensors:
              next_id = max(self.sensors.keys()) + 1
          else:
              next_id = 1
          if next_id <= self.const.MAX_NODE_ID:
              return next_id
          return None