Skip to content

Commit 9ea41b9

Browse files
authored
Update proxy_services.py to include SERVICE_CALL_LIMIT (#238)
* Update proxy_services.py to include SERVICE_CALL_LIMIT Like described here: #236
1 parent 278feb9 commit 9ea41b9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

custom_components/remote_homeassistant/const.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@
2525

2626
DOMAIN = "remote_homeassistant"
2727

28-
REMOTE_ID = "remote"
28+
REMOTE_ID = "remote"
29+
30+
# replaces 'from homeassistant.core import SERVICE_CALL_LIMIT'
31+
SERVICE_CALL_LIMIT = 10

custom_components/remote_homeassistant/proxy_services.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
import asyncio
33

44
import voluptuous as vol
5-
from homeassistant.core import SERVICE_CALL_LIMIT
65
from homeassistant.exceptions import HomeAssistantError
76
from homeassistant.helpers.service import SERVICE_DESCRIPTION_CACHE
87

9-
from .const import CONF_SERVICE_PREFIX, CONF_SERVICES
8+
from .const import CONF_SERVICE_PREFIX, CONF_SERVICES, SERVICE_CALL_LIMIT
109

1110

1211
class ProxyServices:

0 commit comments

Comments
 (0)