return translated_value
return org_string
- def __get_all_translations(self) -> dict:
+ @staticmethod
+ def __get_all_translations() -> dict:
"""Build a list of all translations."""
base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# get base translations
self.mass.add_job(player.set_cast_info, cast_info)
self.mass.add_job(self.mass.players.async_add_player(player))
- def __chromecast_remove_callback(self, cast_uuid, cast_service_name, cast_service):
+ @staticmethod
+ def __chromecast_remove_callback(cast_uuid, cast_service_name, cast_service):
"""Handle a Chromecast removed event."""
# pylint: disable=unused-argument
player_id = str(cast_service[1])