Skip to content

Instantly share code, notes, and snippets.

17-03-03 22:09:01 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform openhome
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
entity_platform.add_entities, discovery_info
File "uvloop/future.pyx", line 230, in __iter__ (uvloop/loop.c:110600)
File "uvloop/future.pyx", line 432, in uvloop.loop.BaseTask._fast_wakeup (uvloop/loop.c:113980)
File "uvloop/future.pyx", line 101, in uvloop.loop.BaseFuture._result_impl (uvloop/loop.c:108900)
File "/usr/local/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/components/media_player/openhome.py", line 44, in setup_platform
@kylegordon
kylegordon / gist:3960418
Created October 26, 2012 18:15
wait_change()
void wait_change() {
int on;
unsigned char v;
do {
v = inb(status);
on = !!(v & 0x20);
usleep(1000);
} while (on == laston);
laston = on;
@kylegordon
kylegordon / lcdlogger.cpp
Created October 20, 2012 16:33
lcdlogger
#include <LCDLogger.h>
#include <LiquidCrystal.h>
// Always check the feature is enabled before any code.
#ifdef ENABLE_LCD_OUTPUT
// initialize the library with the numbers of the interface pins
// The arguments are in this order (RS, EN, D4, D5, D6, D7)
LiquidCrystal LCDLogger::lcd(LCD_RS_PIN, LCD_EN_PIN, LCD_D1_PIN, LCD_D2_PIN, LCD_D3_PIN, LCD_D4_PIN);
### Keybase proof
I hereby claim:
* I am kylegordon on github.
* I am kylegordon (https://keybase.io/kylegordon) on keybase.
* I have a public key whose fingerprint is 1FC8 7A4B B0A3 CBA9 D8E7 4011 9787 19C2 96EF EE22
To claim this, I am signing this object: