From 2440108b85f981e106b92c303ae936b368b11d07 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 3 Jul 2017 21:22:06 +0200 Subject: [PATCH] Fix pylint issue --- homeassistant/components/snips.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/snips.py b/homeassistant/components/snips.py index de54c0239c731e..d820396bf53107 100644 --- a/homeassistant/components/snips.py +++ b/homeassistant/components/snips.py @@ -86,13 +86,13 @@ def handle_intent(self, payload): try: response = json.loads(payload) except TypeError: - LOGGER.error('Received invalid JSON: %s', payload) + LOGGER.error("Received invalid JSON: %s", payload) return try: response = INTENT_SCHEMA(response) except vol.Invalid as err: - LOGGER.error('Intent has invalid schema: %s. %s', err, response) + LOGGER.error("Intent has invalid schema: %s. %s", err, response) return intent = response['intent']['intentName'].split('__')[-1] @@ -108,6 +108,7 @@ def handle_intent(self, payload): slots = self.parse_slots(response) yield from action.async_run(slots) + # pylint: disable=no-self-use def parse_slots(self, response): """Parse the intent slots.""" parameters = {}