Skip to content

Commit

Permalink
docs: fix for homebridge v2 where TargetAirQuality and TargetSlatStat…
Browse files Browse the repository at this point in the history
…e are deprecated
  • Loading branch information
ztalbot2000 committed Jul 28, 2024
1 parent 6acfbb2 commit 80ef143
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 38 deletions.
37 changes: 0 additions & 37 deletions docs/autoGenerated/CMD4_AccessoryDescriptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -6426,25 +6426,6 @@ <h3>Constants</h3>
<tr><TD> 1 </TD><TD> "AUTO" </TD></tr>
</table>
</DIV> <!-- targetAirPurifierState -->
<div id="targetAirQuality" class="section" >
<a name="targetAirQuality"></a>
<header><h1>targetAirQuality</h1></header>
<h3>Properties</h3>
<table>
<tr><TD> Type: </TD><TD> targetAirQuality</TD></tr>
<tr><TD> UUID: </TD><TD> 000000AE-0000-1000-8000-0026BB765291</TD></tr>
<tr><TD> Format: </TD><TD> uint8</TD></tr>
<tr><TD> Max Value: </TD><TD> 2</TD></tr>
<tr><TD> Perms: </TD><TD> Paired Read, Paired Write, Events</TD></tr>
</table>
<h3>Constants</h3>
<table>
<TD> Value </TD><TD> String </TD>
<tr><TD> 0 </TD><TD> "EXCELLENT" </TD></tr>
<tr><TD> 1 </TD><TD> "GOOD" </TD></tr>
<tr><TD> 2 </TD><TD> "FAIR" </TD></tr>
</table>
</DIV> <!-- targetAirQuality -->
<div id="targetControlList" class="section" >
<a name="targetControlList"></a>
<header><h1>targetControlList</h1></header>
Expand Down Expand Up @@ -6629,24 +6610,6 @@ <h3>Properties</h3>
<tr><TD> Perms: </TD><TD> Paired Read, Paired Write, Events</TD></tr>
</table>
</DIV> <!-- targetRelativeHumidity -->
<div id="targetSlatState" class="section" >
<a name="targetSlatState"></a>
<header><h1>targetSlatState</h1></header>
<h3>Properties</h3>
<table>
<tr><TD> Type: </TD><TD> targetSlatState</TD></tr>
<tr><TD> UUID: </TD><TD> 000000BE-0000-1000-8000-0026BB765291</TD></tr>
<tr><TD> Format: </TD><TD> uint8</TD></tr>
<tr><TD> Max Value: </TD><TD> 1</TD></tr>
<tr><TD> Perms: </TD><TD> Paired Read, Paired Write, Events</TD></tr>
</table>
<h3>Constants</h3>
<table>
<TD> Value </TD><TD> String </TD>
<tr><TD> 0 </TD><TD> "MANUAL" </TD></tr>
<tr><TD> 1 </TD><TD> "AUTO" </TD></tr>
</table>
</DIV> <!-- targetSlatState -->
<div id="targetTemperature" class="section" >
<a name="targetTemperature"></a>
<header><h1>targetTemperature</h1></header>
Expand Down
5 changes: 4 additions & 1 deletion tools/Cmd4AccDocGenerator
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ let ACC_DATA = require('../lib/CMD4_ACC_TYPE_ENUM');
let DEVICE_DATA = require('../lib/CMD4_DEVICE_TYPE_ENUM');

// Init the library for all to use
let CMD4_ACC_TYPE_ENUM = ACC_DATA.init( _api.hap.Characteristic );
let CMD4_ACC_TYPE_ENUM = ACC_DATA.init( _api.hap.Characteristic, _api.hap.Formats, _api.hap.Units, _api.hap.Perms );
let CMD4_DEVICE_TYPE_ENUM = DEVICE_DATA.init( CMD4_ACC_TYPE_ENUM, _api.hap.Service, _api.hap.Characteristic, _api.hap.Categories );
let Characteristic = _api.hap.Characteristic;

Expand Down Expand Up @@ -1041,6 +1041,9 @@ function addCharacteristicPages_WithinMain( )
//
for ( let index=0; index < CMD4_ACC_TYPE_ENUM.EOL; index ++)
{
if( CMD4_ACC_TYPE_ENUM.properties[ index ].deprecated == true )
continue;

let characteristic = CMD4_ACC_TYPE_ENUM.properties[ index ].sche;

addSingleCharacteristicContent( index, characteristic );
Expand Down

0 comments on commit 80ef143

Please sign in to comment.