docs: def get_smartplug_by_name(self, name):
          """Retrieves a smartplug object by its name
  
          :param name: The name of the smartplug to return
          :return: A smartplug object
          """
          return next((plug for plug in self.smartplugs
                       if plug.name.lower() == name.lower()), None)