Closed gcoan closed 1 week ago
Further update: just rolled past 1am and now the first row of the table card displayed is 1:30 🤷♂️
Further update:
This appears to be related to Predbat v8.0.0
First thing this morning same thing, first row missing from the table card.
Upgraded to latest predbat 8.2.4, table card now correctly displays first row
downgraded to 8.0.0, first row disappears
So maybe something obscure in the HTML (copied above) for this predbat version, probably low priority if the fix is to upgrade to newer Predbat. I was only running an old version because that was what I had in my fork and I was testing fixes to some Predbat bugs I'd made
yeah its because in 8.1.x trefor added a new row of metadata at the top of the table. The quick fix was for me to skip that, but the downside is anyone pre 8.1.x will have the first row ignored in the table.
I need to do an "if" on the predbat version to support both scenarios, or detect some other way. Probably latter is better option in case trefor adds more rows of metadata before the actual table data. I make assumptions at the moment on "row number x" means something.
Should be fixed in latest version 1.5.5.3. Its not a fancy fix but it at least will guarentee my code looks at the table of data and not his metadata. Ideally his metadata wouldnt be part of the table HTML as its not part of the table data, but alas.
Should be fixed in latest version 1.5.5.3. Its not a fancy fix but it at least will guarentee my code looks at the table of data and not his metadata. Ideally his metadata wouldnt be part of the table HTML as its not part of the table data, but alas.
1.5.5.3 works fine on both 8.0.0 and 8.2.4, thanks
Proper meta data structure is on my to-do list, but working through some other things first....
Its 00:50 and the predbat table card has omitted the first line of the predbat plan.
Never seen it done anything like this before !
Latest table card, 1.5.5.2 Predbat v8.0.0
Predbat plan:![image](https://github.com/pacemaker82/PredBat-Table-Card/assets/142018870/fc3f8f19-adae-4705-8a9f-fb0d6bb81706)
Table card:![image](https://github.com/pacemaker82/PredBat-Table-Card/assets/142018870/19b243b4-acf3-420d-ac78-bf3e1c35b2d0)
predbat_plan HTML:![image](https://github.com/pacemaker82/PredBat-Table-Card/assets/142018870/d5bf6438-2b29-409e-86d2-62b01f969120)
copy/pasted:
html: