def _get_text(self):
device = self._get_device()<EOL>if device is None:<EOL><INDENT>return (UNKNOWN_DEVICE, self.py3.COLOR_BAD)<EOL><DEDENT>if not device["<STR_LIT>"] or not device["<STR_LIT>"]:<EOL><INDENT>return (<EOL>self.py3.safe_format(<EOL>self.format_disconnected, {"<STR_LIT:name>": device["<STR_LIT:name>"]}<EOL>),<EOL>self.py3.COLOR_BAD,<EOL>)<EOL><DEDENT>battery = self._get_battery()<EOL>(charge, bat_status, color) = self._get_battery_status(battery)<EOL>notif = self._get_notifications()<EOL>(notif_size, notif_status) = self._get_notifications_status(notif)<EOL>return (<EOL>self.py3.safe_format(<EOL>self.format,<EOL>dict(<EOL>name=device["<STR_LIT:name>"],<EOL>charge=charge,<EOL>bat_status=bat_status,<EOL>notif_size=notif_size,<EOL>notif_status=notif_status,<EOL>),<EOL>),<EOL>color,<EOL>)<EOL>
Get the current metadatas