Include functools.wraps

This commit is contained in:
Adam Mills 2017-03-09 19:52:45 -05:00
parent 2d337fd29a
commit 529eee994b
No known key found for this signature in database
GPG Key ID: 549DC04888E432E6

View File

@ -5,6 +5,7 @@ For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.kodi/
"""
import asyncio
from functools import wraps
import logging
import urllib
@ -88,6 +89,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
def cmd(func):
"""Decorator to catch command exceptions."""
@wraps(func)
@asyncio.coroutine
def wrapper(obj, *args, **kwargs):
"""Wrapper for all command methods."""