Repository navigation
Conversation
frenck
left a comment
There was a problem hiding this comment.
Hi @paulkjr, thanks for submitting Okie Motor.
We read the whole release, split into parts. A few things in the card bundle need to change before it can go in:
-
Entity attributes into
innerHTMLwithout escaping.src/okie-energy.jslines 401-404 build the energy server rows from the raw attributes ofsensor.energy_server_power(a.cpu_package_w,sys.uptime_s,sys.disk_used_gb,sys.load1and more) and render them as HTML. Attributes are whatever the entity reports. Please escape every interpolated value, or build these rows withtextContent. -
clipsUrlgoes into an iframesrcand a linkhrefwithout a scheme check.src/okie-cameras.jsline 163 returnscfg.clipsUrlas is, and lines 493 and 565 use it as the iframesrcand the clips link. Settings can be imported, so ajavascript:value from a shared settings file runs in the Home Assistant origin. Please accept onlyhttp:andhttps:(or relative paths) and drop anything else. -
Editing a thermostat schedule drops the user's other actions. In
src/okie-thermo-sched.jslines 382-388, saving an edit replaces the whole Scheduler timeslot with the card's own actions, so anything else the user had in that slot is gone. Please merge your thermostat action into the existing slot's actions instead of replacing them.
Two smaller things, not blockers:
- The weather location lookup sends the home coordinates to bigdatacloud.net by default. Please mention it in the README, or make it opt-in.
- The optional iOS app in
ios-app/writes the access and refresh tokens into the localStorage of every page its web view loads, including third-party links (DashboardView.swiftlines 104-113 and 323-324). HACS doesn't ship it, but your users will build it, so it is worth limiting that to your own Home Assistant origin.
Once that's addressed, push a new release and re-request review.
../Frenck
Blogging my personal ramblings at frenck.dev
Or subscribe to my free bi-weekly newsletter: frenck.dev/newsletter

Checklist
Links
Link to current release: https://github.com/paulkjr/okie-motor/releases/tag/v0.52.5
Link to successful HACS action (without the
ignorekey): https://github.com/paulkjr/okie-motor/actions/runs/39642062607Link to successful hassfest action (if integration): <>