Skip to content

Instantly share code, notes, and snippets.

View CoMPaTech's full-sized avatar
😎
Coding along

Tom CoMPaTech

😎
Coding along
  • CoMPa Technology
  • The Netherlands
  • 18:46 (UTC -12:00)
View GitHub Profile
@CoMPaTech
CoMPaTech / patch109
Created April 26, 2020 09:15
HA 109 for plugwise-beta
diff --git a/custom_components/plugwise-beta/climate.py b/custom_components/plugwise-beta/climate.py
index ae1a1cc..41a6e6b 100644
--- a/custom_components/plugwise-beta/climate.py
+++ b/custom_components/plugwise-beta/climate.py
@@ -3,7 +3,7 @@
import logging
from typing import Dict
-from homeassistant.components.climate import ClimateDevice
+from homeassistant.components.climate import ClimateEntity
@CoMPaTech
CoMPaTech / test_climate.py
Created May 30, 2020 09:25
HA testing for plugwise
"""Tests for the tado integration."""
from homeassistant.components.plugwise import DOMAIN
from homeassistant.core import HomeAssistant
from tests.common import MockConfigEntry, load_fixture
from tests.test_util.aiohttp import AiohttpClientMocker
import pytest
@CoMPaTech
CoMPaTech / zero.py
Created June 17, 2020 17:47
zeroconf discovery
from zeroconf import ServiceBrowser, Zeroconf
class MyListener:
def remove_service(self, zeroconf, type, name):
print("Service %s removed\n" % (name,))
def add_service(self, zeroconf, type, name):
info = zeroconf.get_service_info(type, name)
@CoMPaTech
CoMPaTech / patch.py
Created July 18, 2020 19:49
not working testing
diff --git a/tests/components/plugwise/test_config_flow.py b/tests/components/plugwise/test_config_flow.py
index feb695aae8..22a6fc6079 100644
--- a/tests/components/plugwise/test_config_flow.py
+++ b/tests/components/plugwise/test_config_flow.py
@@ -2,10 +2,19 @@
from Plugwise_Smile.Smile import Smile
import pytest
-from homeassistant import config_entries, setup
-from homeassistant.components.plugwise.const import DOMAIN