Skip to content

Commit

Permalink
Last Touches
Browse files Browse the repository at this point in the history
  • Loading branch information
OttoWinter committed Aug 25, 2018
1 parent 5c39f73 commit 1c7bddd
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 9 deletions.
3 changes: 2 additions & 1 deletion docker/Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ COPY docker/platformio-esp8266.ini /pio/platformio.ini
RUN platformio run -d /pio; rm -rf /pio

COPY . .
RUN pip install --no-cache-dir --no-binary :all: -e .
RUN pip install --no-cache-dir --no-binary :all: -e . && \
pip install --no-cache-dir --no-binary :all: pillow tzlocal

CMD ["esphomeyaml", "/config/esphomeyaml", "dashboard"]
3 changes: 2 additions & 1 deletion docker/Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ COPY docker/platformio.ini /pio/platformio.ini
RUN platformio run -d /pio; rm -rf /pio

COPY . .
RUN pip install --no-cache-dir --no-binary :all: -e .
RUN pip install --no-cache-dir --no-binary :all: -e . && \
pip install --no-cache-dir --no-binary :all: pillow tzlocal

CMD ["esphomeyaml", "/config/esphomeyaml", "dashboard"]
3 changes: 2 additions & 1 deletion docker/Dockerfile.armhf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ COPY docker/platformio-esp8266.ini /pio/platformio.ini
RUN platformio run -d /pio; rm -rf /pio

COPY . .
RUN pip install --no-cache-dir --no-binary :all: -e .
RUN pip install --no-cache-dir --no-binary :all: -e . && \
pip install --no-cache-dir --no-binary :all: pillow tzlocal

CMD ["esphomeyaml", "/config/esphomeyaml", "dashboard"]
3 changes: 2 additions & 1 deletion docker/Dockerfile.i386
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ COPY docker/platformio.ini /pio/platformio.ini
RUN platformio run -d /pio; rm -rf /pio

COPY . .
RUN pip install --no-cache-dir --no-binary :all: -e .
RUN pip install --no-cache-dir --no-binary :all: -e . && \
pip install --no-cache-dir --no-binary :all: pillow tzlocal

CMD ["esphomeyaml", "/config/esphomeyaml", "dashboard"]
3 changes: 2 additions & 1 deletion esphomeyaml-edge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ RUN /bin/bash -c "if [[ '$BUILD_FROM' = *\"ubuntu\"* ]]; then \

# Install latest esphomeyaml from git
RUN pip install --no-cache-dir \
git+git://github.com/OttoWinter/esphomeyaml.git
git+git://github.com/OttoWinter/esphomeyaml.git && \
pip install pillow tzlocal

CMD ["esphomeyaml", "/config/esphomeyaml", "dashboard"]
3 changes: 2 additions & 1 deletion esphomeyaml/components/remote_transmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import esphomeyaml.config_validation as cv
from esphomeyaml import pins
from esphomeyaml.components.switch.remote_transmitter import rc_switch_protocols, RCSwitchProtocol
from esphomeyaml.const import CONF_ADDRESS, CONF_CARRIER_DUTY_PERCENT, CONF_CHANNEL, CONF_CODE, \
CONF_DEVICE, CONF_FAMILY, CONF_GROUP, CONF_ID, CONF_INVERTED, CONF_ONE, CONF_PIN, \
CONF_PROTOCOL, CONF_PULSE_LENGTH, CONF_STATE, CONF_SYNC, CONF_ZERO
Expand All @@ -12,6 +11,8 @@
remote_ns = esphomelib_ns.namespace('remote')

RemoteTransmitterComponent = remote_ns.RemoteTransmitterComponent
RCSwitchProtocol = remote_ns.RCSwitchProtocol
rc_switch_protocols = remote_ns.rc_switch_protocols


def validate_rc_switch_code(value):
Expand Down
4 changes: 1 addition & 3 deletions esphomeyaml/components/switch/remote_transmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from esphomeyaml.const import CONF_ADDRESS, CONF_CARRIER_FREQUENCY, CONF_CHANNEL, CONF_CODE, \
CONF_COMMAND, CONF_DATA, CONF_DEVICE, CONF_FAMILY, CONF_GROUP, CONF_INVERTED, CONF_LG, \
CONF_NAME, CONF_NBITS, CONF_NEC, CONF_PANASONIC, CONF_PROTOCOL, CONF_RAW, CONF_RC_SWITCH_RAW, \
CONF_RC_SWITCH_TYPE_A, CONF_RC_SWITCH_TYPE_B, CONF_RC_SWITCH_TYPE_C, CONF_RC_SWITCH_TYPE_D,\
CONF_RC_SWITCH_TYPE_A, CONF_RC_SWITCH_TYPE_B, CONF_RC_SWITCH_TYPE_C, CONF_RC_SWITCH_TYPE_D, \
CONF_REPEAT, CONF_SONY, CONF_STATE, CONF_TIMES, \
CONF_WAIT_TIME
from esphomeyaml.helpers import App, ArrayInitializer, Pvariable, add, get_variable
Expand All @@ -29,8 +29,6 @@
PanasonicTransmitter = remote_ns.PanasonicTransmitter
RawTransmitter = remote_ns.RawTransmitter
SonyTransmitter = remote_ns.SonyTransmitter
RCSwitchProtocol = remote_ns.RCSwitchProtocol
rc_switch_protocols = remote_ns.rc_switch_protocols
RCSwitchRawTransmitter = remote_ns.RCSwitchRawTransmitter
RCSwitchTypeATransmitter = remote_ns.RCSwitchTypeATransmitter
RCSwitchTypeBTransmitter = remote_ns.RCSwitchTypeBTransmitter
Expand Down
2 changes: 2 additions & 0 deletions esphomeyaml/config_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ def templatable(other_validators):
def validator(value):
if isinstance(value, Lambda):
return value
if isinstance(other_validators, dict):
return vol.Schema(other_validators)(value)
return other_validators(value)

return validator
Expand Down
2 changes: 2 additions & 0 deletions esphomeyaml/dashboard/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@
width: 350px;
}
</style>

<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>

Expand Down

0 comments on commit 1c7bddd

Please sign in to comment.