From 8495e66ced7dc4e69537d355f1926c0f0cfa9ef2 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Fri, 30 Nov 2018 13:48:10 +0100 Subject: [PATCH] Use safer RedirectText --- esphomeyaml/util.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/esphomeyaml/util.py b/esphomeyaml/util.py index 3164061dec..784019daf6 100644 --- a/esphomeyaml/util.py +++ b/esphomeyaml/util.py @@ -54,11 +54,8 @@ class RedirectText(object): def __init__(self, out): self._out = out - def write(self, s): - self._out.write(s) - - def flush(self): - self._out.flush() + def __getattr__(self, item): + return getattr(self._out, item) def isatty(self): return True