[modules/pulsectl] make device names case sensitive

A previous change accidentially changed the "pretty" device name mapping
to be required to be in lowercase (rather than the exact name of the
devices. Restore previous functionality.

fixes #989
This commit is contained in:
tobi-wan-kenobi 2023-09-11 09:36:47 +02:00
parent 9c5e30ac61
commit fded39fa81

View file

@ -110,8 +110,8 @@ class Module(core.module.Module):
res = f"{res} {util.graph.hbar(self.__volume*100)}"
if self.__show_device_name:
friendly_name = self.parameter(self.__devicename.lower(), self.__devicename)
icon = self.parameter("icon." + self.__devicename.lower(), "")
friendly_name = self.parameter(self.__devicename, self.__devicename)
icon = self.parameter("icon." + self.__devicename, "")
res = (
icon + " " + friendly_name + " | " + res
if icon != ""